C#
You can integrate the Ditto SDK into C# projects to develop for a wide range of platforms, including mobile apps for iOS and Android, desktop apps, Linux-enabled server systems, and more.
For a complete overview of the platforms, transports, and devices the C# SDK supports, see C#.
To install the C# SDK:
Confirm that you meet the minimum requirements. (Prerequisites)
Prepare your environment for Ditto. (Setting Up Your Environment)
Set up your app permissions. (Setting Up Permissions)
Add Ditto to your app. (Integrating Ditto)
Following are the minimum requirements that must be met before attempting to install Ditto.
Using either a compatible package manager, the .NET CLI, or by adding a reference to the package: CSProj.xml file, install the Ditto SDK by doing any of the following:
If using a package manager other than NuGet, the official package manager for .NET, the command syntax to install Ditto may differ from the following snippet. For more information, see the official Nuget documentation > Ditto .NET Standard
Once you’ve installed the Ditto SDK, set the debug level you want Ditto to log messages for, create a new Ditto identity, and set up Ditto exception handling for data sync operations: