Cross Platform Native Plugins
A true cross platform tool for Unity which provides unique and unified way to access native functionality on mobile platforms.
Public Member Functions | Properties | List of all members
Utility Class Reference

Provides a cross-platform interface to access useful features such as RateMyApp, app's bundle information etc. More...

Public Member Functions

virtual string GetUUID ()
 Returns a new unique identifier. More...
 
void OpenStoreLink (params PlatformID[] _applicationIDList)
 Opens the Store page of the specified application. More...
 
virtual void OpenStoreLink (string _applicationID)
 Opens the Store page of the specified application. More...
 
virtual void SetApplicationIconBadgeNumber (int _badgeNumber)
 Sets the specified numeric value as the application's badge number. More...
 
string GetBundleVersion ()
 Returns the string that specifies build version number of the bundle. More...
 
string GetBundleIdentifier ()
 Returns the string that identifies your application to the system. More...
 

Properties

RateMyApp RateMyApp [get]
 The shared instance of RateMyApp feature. (read-only) More...
 

Detailed Description

Provides a cross-platform interface to access useful features such as RateMyApp, app's bundle information etc.

Member Function Documentation

virtual string GetUUID ( )
virtual

Returns a new unique identifier.

Returns
New unique identifier.
void OpenStoreLink ( params PlatformID[]  _applicationIDList)

Opens the Store page of the specified application.

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
_applicationIDListAn array of string values, that holds app id's of each supported platform.

The following code example shows how to open store link.

using System.Collections;
public class ExampleClass : MonoBehaviour
{
public void OpenStorePage ()
{
NPBinding.Utility.OpenStoreLink(Platform.Android("com.example.app"),
Platform.IOS("ios-app-id"));
}
}
virtual void OpenStoreLink ( string  _applicationID)
virtual

Opens the Store page of the specified application.

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
_applicationIDA string that identifies an application in the current platform's Store.
virtual void SetApplicationIconBadgeNumber ( int  _badgeNumber)
virtual

Sets the specified numeric value as the application's badge number.

Parameters
_badgeNumberThe numeric value to be set as badge number.
Note
Setting this property to 0 (zero) will hide the badge number.
string GetBundleVersion ( )

Returns the string that specifies build version number of the bundle.

Returns
The bundle version.
string GetBundleIdentifier ( )

Returns the string that identifies your application to the system.

Returns
The bundle identifier.

Property Documentation

The shared instance of RateMyApp feature. (read-only)

Note
Returns null value, if feature is marked disabled in Utility Settings.