Provides a cross-platform interface to access commonly used native features.
◆ Initialize()
- Parameters
-
| settings | The settings to be used for initialization. |
The settings configure the utilities module.
◆ OpenAppStorePage() [1/2]
For iOS platform, id is the value that identifies your app on App Store. And on Android, it will be same as app's bundle identifier (com.example.test).
- Parameters
-
| applicationIds | An array of string values, that holds app id's of each supported platform. |
The following code example shows how to open store link.
using UnityEngine;
using System.Collections;
public class ExampleClass : MonoBehaviour
{
public void OpenStorePage ()
{
Utilities.OpenStoreLink(PlatformValue.Android(
"com.example.app"), PlatformValue.IOS(
"ios-app-id"));
}
}
Provides a cross-platform interface to access commonly used native features.
Definition Utilities.cs:17
Namespace for essential kit features. You need to import this namespace along with VoxelBusters....
Definition AddressBook.cs:8
◆ OpenAppStorePage() [2/2]
| static void OpenAppStorePage |
( |
string | applicationId | ) |
|
|
static |
- Parameters
-
| applicationId | Application id. |
◆ OpenApplicationSettings()
| static void OpenApplicationSettings |
( |
| ) |
|
|
static |
For iOS platform, this will open the settings app to the app's custom settings page. On Android, this will open app's settings page in the device's settings app.
◆ RequestInfoForAgeCompliance()
- Parameters
-
| options | Options for adding available content age gate ranges. Pass null or RequestInfoForAgeComplianceOptions.Default to use default values. |
| onComplete | A callback that will be invoked when the request is completed with the result. |
References UtilityUnitySettings.UsesAgeComplianceApi.