Provides a cross-platform interface to access commonly used native features.
|
static void | OpenAppStorePage () |
| Opens the app store website page associated with this app.
|
|
static void | OpenAppStorePage (params RuntimePlatformConstant[] applicationIds) |
| Opens the app store page associated with the specified application id.
|
|
static void | OpenAppStorePage (string applicationId) |
| Opens the app store website page associated with the specified application id.
|
|
static void | OpenApplicationSettings () |
| Opens the app settings page associated with this app.
|
|
|
static void | Initialize (UtilityUnitySettings settings) |
| Initializes the utilities module with the given settings. This call is optional and only need to be called if you have custom settings to initialize this feature.
|
|
◆ Initialize()
static void Initialize |
( |
UtilityUnitySettings | settings | ) |
|
|
static |
- 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:19
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.