Ejemplo n.º 1
0
     public static void SetCustomId(string customId)
     {
 #if UNITY_ANDROID && !UNITY_EDITOR
         PusheCore.SetCustomId(customId);
 #elif UNITY_IOS && !UNITY_EDITOR
         PusheiOSUnityInterface.SetCustomId(customId);
 #endif
     }
Ejemplo n.º 2
0
     public static void OnPusheRegistered(PusheDelegate onRegistered)
     {
 #if UNITY_ANDROID && !UNITY_EDITOR
         PusheCore.OnPusheRegistered(onRegistered);
 #elif UNITY_IOS && !UNITY_EDITOR
         // not implemented
 #endif
     }
Ejemplo n.º 3
0
     public static void Unsubscribe(string topic)
     {
 #if UNITY_ANDROID && !UNITY_EDITOR
         PusheCore.UnsubscribeFrom(topic);
 #elif UNITY_IOS && !UNITY_EDITOR
         PusheiOSUnityInterface.Unsubscribe(topic);
 #endif
     }
Ejemplo n.º 4
0
     public static void RemoveTags(params string[] keys)
     {
 #if UNITY_ANDROID && !UNITY_EDITOR
         PusheCore.RemoveTags(keys);
 #elif UNITY_IOS && !UNITY_EDITOR
         PusheiOSUnityInterface.RemoveTags(keys);
 #endif
     }
Ejemplo n.º 5
0
     public static void AddTags(Dictionary <string, string> tags)
     {
 #if UNITY_ANDROID && !UNITY_EDITOR
         PusheCore.AddTags(tags);
 #elif UNITY_IOS && !UNITY_EDITOR
         PusheiOSUnityInterface.AddTags(tags);
 #endif
     }
Ejemplo n.º 6
0
        //////

        public static void Initialize()
        {
    #if UNITY_ANDROID && !UNITY_EDITOR
            PusheCore.Initialize();
    #elif UNITY_IOS && !UNITY_EDITOR
            PusheiOSUnityInterface.Initialize();
    #endif
        }
Ejemplo n.º 7
0
     public static string GetCustomId()
     {
 #if UNITY_ANDROID && !UNITY_EDITOR
         return(PusheCore.GetCustomId());
 #elif UNITY_IOS && !UNITY_EDITOR
         return(PusheiOSUnityInterface.GetCustomId());
 #endif
         return(null);
     }
Ejemplo n.º 8
0
     public static string GetGoogleAdvertisingId()
     {
 #if UNITY_ANDROID && !UNITY_EDITOR
         return(PusheCore.GetGoogleAdvertisingId());
 #elif UNITY_IOS && !UNITY_EDITOR
         return(PusheiOSUnityInterface.GetAdvertisingId());
 #endif
         return(null);
     }
Ejemplo n.º 9
0
     public static bool IsRegistered()
     {
 #if UNITY_ANDROID && !UNITY_EDITOR
         return(PusheCore.IsRegistered());
 #elif UNITY_IOS && !UNITY_EDITOR
         return(PusheiOSUnityInterface.IsRegistered());
 #endif
         return(false);
     }
Ejemplo n.º 10
0
     public static string[] GetSubscribedTopics()
     {
 #if UNITY_ANDROID && !UNITY_EDITOR
         return(PusheCore.GetSubscribedTopics());
 #elif UNITY_IOS && !UNITY_EDITOR
         return(PusheiOSUnityInterface.GetSubscribedTopics());
 #endif
         return(null);
     }
Ejemplo n.º 11
0
     public static bool IsInitialized()
     {
 #if UNITY_ANDROID && !UNITY_EDITOR
         return(PusheCore.IsInitialized()); // Not registration
 #elif UNITY_IOS && !UNITY_EDITOR
         return(true);
 #endif
         return(false);
     }
Ejemplo n.º 12
0
     public static string GetUserPhoneNumber()
     {
 #if UNITY_ANDROID && !UNITY_EDITOR
         return(PusheCore.GetUserPhoneNumber());
 #elif UNITY_IOS && !UNITY_EDITOR
         return(PusheiOSUnityInterface.GetUserPhoneNumber());
 #endif
         return(null);
     }
Ejemplo n.º 13
0
     public static bool SetUserPhoneNumber(string number)
     {
 #if UNITY_ANDROID && !UNITY_EDITOR
         return(PusheCore.SetUserPhoneNumber(number));
 #elif UNITY_IOS && !UNITY_EDITOR
         return(PusheiOSUnityInterface.SetUserPhoneNumber(number));
 #endif
         return(false);
     }
Ejemplo n.º 14
0
     public static bool SetUserEmail(string email)
     {
 #if UNITY_ANDROID && !UNITY_EDITOR
         return(PusheCore.SetUserEmail(email));
 #elif UNITY_IOS && !UNITY_EDITOR
         return(PusheiOSUnityInterface.SetUserEmail(email));
 #endif
         return(false);
     }
Ejemplo n.º 15
0
     public static Dictionary <string, string> GetSubscribedTags()
     {
 #if UNITY_ANDROID && !UNITY_EDITOR
         return(new Dictionary <string, string> {
             { "tags", PusheCore.GetSubscribedTags() }
         });
 #elif UNITY_IOS && !UNITY_EDITOR
         return(PusheiOSUnityInterface.GetSubscribedTags());
 #endif
         return(null);
     }