Windows 8.1 Secondary Methods

Initial referrer tracking

Unfortunately, Windows Store does not provide any capability to pass a referrer string through to your app from a link to the store. But if you have a referral info, you can set it using the method below:

/**
 * ### Usage:
 *     Dictionary<ReferralProperty, string> referralData = new Dictionary<ReferralProperty, string>();
 *     referralData.Add(ReferralProperty.Source, "source");
 *     referralData.Add(ReferralProperty.Medium, "medium");
 *     referralData.Add(ReferralProperty.Content, "content");
 *     referralData.Add(ReferralProperty.Campaign, "campaign");
 *     referralData.Add(ReferralProperty.Term, "term");
 *     referralData.Add(ReferralProperty.Custom("site"), "site");
 *     DevToDev.SDK.Referral(referralData);
 *
 * <param name="referralData">Dictionary with referrer values</param>
 */
DevToDev.SDK.Referral(Dictionary<ReferralProperty, string> referralData);

The list of predefined keys:

//To identify a search engine, newsletter name, or other source.
// (for example 'AdWords', 'Bing', 'E-Mail Newsletter')
ReferralProperty.Source;

//To identify a medium such as email or cost-per-install.
// (for example 'CPI')
ReferralProperty.Medium;

//To identify a specific product promotion or strategic campaign.
//(for example 'Snow Boots')
ReferralProperty.Campaign;

//To differentiate ads or links that point to the same URL.
//(for example some ads might advertise 'Warm Snow Boots' and others might advertise 'Durable Snow Boots')
ReferralProperty.Content;

//To note the keywords for this ad.
// for example 'shoes+boots')
ReferralProperty.Term;
 
//To add a custom key
ReferralProperty.Custom("your_key_name");

Connecting to social network

/**
* Tracks the existence of a connection with a social network.
* Use pre-defined or custom values as an identifier.
* <param name="socialNetwork"> Social network ID </param>
*/
DevToDev.SDK.SocialNetworkConnect(SocialNetwork socialNetwork);

Example:

DevToDev.SDK.SocialNetworkConnect(SocialNetwork.Facebook);

Use the current constants to specify social network:

SocialNetwork.Facebook
SocialNetwork.Twitter
SocialNetwork.GooglePlus
SocialNetwork.Vk
and so on...

Otherwise, create social network the object of your own:

SocialNetwork socialNetwork = SocialNetwork.Custom(string networkName); //(max. 24 symbols)

Posting to social network

Track publications to social networks from the app to improve viral marketing efficiency.The event is sent after the social network confirms the publication.

The social network ID is the same as with DevToDev.SDK.SocialNetworkConnect(). It is possible to use pre-defined or custom values as the reason (pReason parameter) .

/**
*  <param name="networkName"> Social network ID </param>
*  <param name="reason"> The reason of posting. (max. 32 symbols)</param>
*/
DevToDev.SDK.SocialNetworkPost(SocialNetwork socialNetwork, String reason)

Example:

DevToDev.SDK.SocialNetworkPost(SocialNetwork.Facebook, "newLevelReached");

As a «reason» parameter we recommend that  you indicate actions which encourage users to make publication.

For example:

  • Start playing

  • New level reached

  • New building

  • New ability

  • Quest completed

  • New item

  • Collection completed

  • Invitation

 
  • Asking for help

  • New Record

  • Acheivement

  • URL sharing

  • Recommendation

  • Review

and so on...

Use the current constants to specify social network:

SocialNetwork.Facebook
SocialNetwork.Twitter
SocialNetwork.GooglePlus
SocialNetwork.Vk
and so on...

Otherwise, create social network the object of your own:

SocialNetwork socialNetwork = SocialNetwork.Custom(string networkName); //(max. 24 symbols)

OpenUDID

Property allows to get UDID:

DevToDev.SDK.OpenUdid

ODIN

Property allows to get ODIN:

DevToDev.SDK.ODIN

Debug  mode

To enable the debug mode and make SDK notifications displayed in the console use this method:

//to enable logging
DevToDev.SDK.LogEnabled = true;

//to disable loging
DevToDev.SDK.LogEnabled = false;

Forced sending

To send events pack before it is filled or before its formation period you can use immediate dispatch:

DevToDev.SDK.sendBufferedEvents();

Current SDK version

To get the version of integrated SDK use this method:

DevToDev.SDK.GetSdkVersion();

Tracking state (GDPR)

The method of limiting the processing of user data. The right to be forgotten.

This property is implemented in accordance with the GDPR requirements.
In case a user doesn’t want their data to be sent and processed in the devtodev system, a developer must  use a ’false’ value to this property.
In the case of using TrackingAvailability property with a ‘false’ value, SDK sends a command to the server to delete all user’s personal data that has been collected by devtodev from this app and a command to block the collection of any data of this user in future, and then stops sending any messages to the devtodev system.
The user will remain listed as an impersonal unit in previously aggregated metrics.
In the case of using TrackingAvailability property with a ‘true’ value, the permission to block data collection is removed.
/// <summary> The Property of limiting the processing of user data. The right to be forgotten.
/// Use 'false' to erase user's personal data and stop collecting data of this user or 'true'
/// if you want to resume data collection.</summary>

DevToDev.SDK.TrackingAvailability = false/true;

 

User profile
Anticheat methods