Skip to main content
Version: 3.1

class PrivacyData

(Niantic.Lightship.AR.Settings.PrivacyData)

Overview

This class contains all the data required for data management requests.

class PrivacyData {
public:
// properties

string ClientId;
string UserId;

// methods

static void SetUserId(string userId);
static void ClearUserId();
};

Detailed Documentation

This class contains all the data required for data management requests.

Properties

ClientId

string ClientId

This is the device Id used to identify any device. In case there is no userId, the clientId can be provided for your GDPR data requests. If you are a Lightship developer, clientId is Unity's SystemInfo.deviceUniqueIdentifier.

For your game users, it is a random Guid. In case of no userId, you have to record it. It changes if the ios/android app is uninstalled and reinstalled. It remains the same over app upgrades

UserId

string UserId

This is the user Id that identifies each individual end user so that their data can be identified.

Methods

SetUserId

static void SetUserId(string userId)

Sets the userId of the user when the user logs in.

    Parameters:

    userId - the userId of the user

ClearUserId

static void ClearUserId()

Clears the userId when the user logs out so that we can dissociate the data from that user.