Gamebase SDK for Unity 2.75.0 Toast Gamebase Platform

Loading...
Searching...
No Matches

## ◆ GetAppTrackingAuthorizationStatus()

static GamebaseAppTrackingAuthorizationStatus GetAppTrackingAuthorizationStatus | ( |  | ) |
| static

Request app-tracking permission status for user authorization.

Since
  Added 2.64.0.

Returns
  One of GamebaseAppTrackingAuthorizationStatus.AUTHORIZED, GamebaseAppTrackingAuthorizationStatus.DENIED, GamebaseAppTrackingAuthorizationStatus.NOT_DETERMINED, GamebaseAppTrackingAuthorizationStatus.RESTRICTED, GamebaseAppTrackingAuthorizationStatus.UNKNOWN

Example Usage :

public void GetAppTrackingAuthorizationStatusSample()
{
#if UNITY_IOS
switch (Gamebase.Util.GetAppTrackingAuthorizationStatus() ) Ios only
{
case GamebaseAppTrackingAuthorizationStatus.AUTHORIZED:
{
}
break; <br>
case GamebaseAppTrackingAuthorizationStatus.DENIED:
{
}
break;
case GamebaseAppTrackingAuthorizationStatus.NOT_DETERMINED:
{
}
break;
case GamebaseAppTrackingAuthorizationStatus.RESTRICTED:
{
}
break;
case GamebaseAppTrackingAuthorizationStatus.UNKNOWN:
{
}
break;
}
#endif
}
Toast.Gamebase.Gamebase.Util.GetAppTrackingAuthorizationStatus
static GamebaseAppTrackingAuthorizationStatus GetAppTrackingAuthorizationStatus()
Request app-tracking permission status for user authorization.
Definition: Gamebase.cs:3049
Toast.Gamebase.Gamebase.Util
The Util class provides convenient and useful methods.
Definition: Gamebase.cs:2931
Toast.Gamebase.Gamebase
The Gamebase class is core of Gamebase service.
Definition: Gamebase.cs:11