To start working with the SDK, add the DevToDev.winmd and DevToDev.Background.winmd to the project references.
Initialize the library at Application Launching event.
/*** <param name="appKey">App ID</param>* <param name="appSecret">Application secret key</param>*/DevToDev.SDK.Initialize(string appKey, string appSecret);
App ID and Secret key can be found in the application settings (Open "Settings" → "SDK" → "Integration").
If the application you integrate SDK in is a part of cross-platform project, then the user data initialization is required.
Since the analytics of a cross-platform projects is based on a unique user (unlike the usual projects where it is based on device identifiers), you have to:
Set the unique cross-platform user identifier (it will be used for a cross-platform project data collection).
Actualize the user data. Mostly it is about game applications where the player has a game level as a characteristic. For such projects you need to set the current player level.
DevToDev.SDK.UserID = "activeUserId"; //cross-platform user identifier (64 symbols max.)/*** <param name="appKey">App ID</param>* <param name="appSecret">Application secret key</param>*/DevToDev.SDK.Initialize(string appKey, string appSecret);/*** <param name="level">Current level</param>*/DevToDev.SDK.SetCurrentLevel(int level);
To enable the debug mode and make SDK notifications displayed in the console use this method:
//to enable loggingDevToDev.SDK.LogEnabled = true;//to disable logingDevToDev.SDK.LogEnabled = false;