Exemple #1
0
            public void TagsAvailable(JSONObject jsonObject)
            {
                Dictionary <string, object> dict = null;

                if (jsonObject != null)
                {
                    dict = Json.Deserialize(jsonObject.ToString()) as Dictionary <string, object>;
                }
                OneSignal.tagsAvailableDelegate(dict);
            }
Exemple #2
0
            public void OnFailure(JSONObject jsonObject)
            {
                Dictionary <string, object> dict = null;

                if (jsonObject != null)
                {
                    dict = Json.Deserialize(jsonObject.ToString()) as Dictionary <string, object>;
                }
                OneSignal.onPostNotificationFailureDelegate(dict);
            }
Exemple #3
0
            public void NotificationOpened(string message, JSONObject additionalData, bool isActive)
            {
                Dictionary <string, object> dict = null;

                if (additionalData != null)
                {
                    dict = Json.Deserialize(additionalData.ToString()) as Dictionary <string, object>;
                }
                OneSignal.notificationOpenedDelegate(message, dict, isActive);
            }
Exemple #4
0
 public void PostNotificationFailureHandler(Foundation.NSError error)
 {
     if (error.UserInfo != null && error.UserInfo ["returned"] != null)
     {
         Dictionary <string, object> dict = NSDictToPureDict(error.UserInfo);
         OneSignal.onPostNotificationFailed(dict);
     }
     else
     {
         OneSignal.onPostNotificationFailed(new Dictionary <string, object> {
             { "error", "HTTP no response error" }
         });
     }
 }
Exemple #5
0
 public void EndInit()
 {
     OneSignal.Init();
 }
Exemple #6
0
        public void PostNotificationSuccessHandler(Foundation.NSDictionary result)
        {
            Dictionary <string, object> dict = NSDictToPureDict(result);

            OneSignal.onPostNotificationSuccess(dict);
        }
Exemple #7
0
        public void GetTagsHandler(Foundation.NSDictionary result)
        {
            Dictionary <string, object> dict = NSDictToPureDict(result);

            OneSignal.onTagsReceived(dict);
        }
Exemple #8
0
 public void NotificationReceivedHandler(iOS.OSNotification notification)
 {
     OneSignal.onPushNotificationReceived(OSNotificationToNative(notification));
 }
Exemple #9
0
 public void NotificationOpenedHandler(iOS.OSNotificationOpenedResult result)
 {
     OneSignal.onPushNotificationOpened(OSNotificationOpenedResultToNative(result));
 }
Exemple #10
0
 public void IdsAvailableHandler(string playerID, string pushToken)
 {
     OneSignal.onIdsAvailable(playerID, pushToken);
 }
Exemple #11
0
 public void IdsAvailable(string p0, string p1)
 {
     OneSignal.idsAvailableDelegate(p0, p1);
 }
Exemple #12
0
 public void NotificationOpened(Android.OSNotificationOpenResult result)
 {
     OneSignal.onPushNotificationOpened(OSNotificationOpenedResultToNative(result));
 }
Exemple #13
0
 public void NotificationReceived(Android.OSNotification notification)
 {
     OneSignal.onPushNotificationReceived(OSNotificationToNative(notification));
 }
Exemple #14
0
 public void IdsAvailable(string p0, string p1)
 {
     OneSignal.onIdsAvailable(p0, p1);
 }