Skip to main content

class Metadata

(Niantic.Lightship.AR.Settings.Metadata)

Overview​

Contains metadata and properties regarding the current instance of Ardk

class Metadata {
public:
// properties

string Version;

// methods

static void SetAccessToken(string accessToken);
static void SetRefreshToken(string refreshToken);
};

Detailed Documentation​

Contains metadata and properties regarding the current instance of Ardk

Properties​

Version​

string Version

Returns the ardk version that you are using

Methods​

SetAccessToken​

static void SetAccessToken(string accessToken)

Sets the access token for authentication with Lightship services. This token will be used for API Gateway requests instead of the API key.

    Parameters:

    accessToken - The access token string for authentication

SetRefreshToken​

static void SetRefreshToken(string refreshToken)

Sets the refresh token so native can refresh access tokens as needed.

    Parameters:

    refreshToken - The refresh token string