예제 #1
0
    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));
    }
예제 #2
0
        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);
        }
예제 #3
0
 UtilityAndroid()
 {
     Plugin = AndroidPluginUtility.GetSingletonInstance(Native.Class.NAME);
 }
 public NotificationServiceAndroid()
 {
     Plugin = AndroidPluginUtility.GetSingletonInstance(NativeInfo.Class.NAME);
 }
예제 #5
0
        MediaLibraryAndroid()
        {
            Plugin = AndroidPluginUtility.GetSingletonInstance(NativeInfo.Class.NAME);

            Plugin.Call(NativeInfo.Methods.INITIALIZE, NPSettings.MediaLibrary.Android.YoutubeAPIKey);
        }
예제 #6
0
 public WebViewNativeAndroid()
 {
     Plugin = AndroidPluginUtility.GetSingletonInstance(NativeInfo.Class.NAME);
 }
예제 #7
0
 AddressBookAndroid()
 {
     Plugin = AndroidPluginUtility.GetSingletonInstance(NativeInfo.Class.NAME);
 }
예제 #8
0
 NetworkConnectivityAndroid()
 {
     Plugin = AndroidPluginUtility.GetSingletonInstance(NativeInfo.Class.NAME);
 }
 SoomlaGrowServiceAndroid()
 {
     Plugin = AndroidPluginUtility.GetSingletonInstance(Native.Class.NAME);
 }