public static void Initialize(string publicKey, ItemData[] itemList) { Plugin = AndroidPluginUtility.GetSingletonInstance("com.voxelbusters.nativeplugins.features.billing.BillingHandler"); // Get a list of consumable item ids and convert it to a json string string[] consumableItemIds = Billing.GetConsumableItemIds(itemList); Plugin.Call("initialize", publicKey, JsonUtility.ToJson(consumableItemIds)); }
GameServicesAndroid() { Plugin = AndroidPluginUtility.GetSingletonInstance(AndroidNativeInfo.Class.NAME); m_achievementsManager = gameObject.AddComponent <AndroidAchievementsManager>(); m_achievementsManager.SetPluginInstance(Plugin); m_leaderboardsManager = gameObject.AddComponent <AndroidLeaderboardsManager>(); m_leaderboardsManager.SetPluginInstance(Plugin); m_userProfilesManager = gameObject.AddComponent <AndroidUserProfilesManager>(); m_userProfilesManager.SetPluginInstance(Plugin); }
UtilityAndroid() { Plugin = AndroidPluginUtility.GetSingletonInstance(Native.Class.NAME); }
public NotificationServiceAndroid() { Plugin = AndroidPluginUtility.GetSingletonInstance(NativeInfo.Class.NAME); }
MediaLibraryAndroid() { Plugin = AndroidPluginUtility.GetSingletonInstance(NativeInfo.Class.NAME); Plugin.Call(NativeInfo.Methods.INITIALIZE, NPSettings.MediaLibrary.Android.YoutubeAPIKey); }
public WebViewNativeAndroid() { Plugin = AndroidPluginUtility.GetSingletonInstance(NativeInfo.Class.NAME); }
AddressBookAndroid() { Plugin = AndroidPluginUtility.GetSingletonInstance(NativeInfo.Class.NAME); }
NetworkConnectivityAndroid() { Plugin = AndroidPluginUtility.GetSingletonInstance(NativeInfo.Class.NAME); }
SoomlaGrowServiceAndroid() { Plugin = AndroidPluginUtility.GetSingletonInstance(Native.Class.NAME); }