Ejemplo n.º 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);
            }
Ejemplo n.º 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);
            }
Ejemplo n.º 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);
            }
Ejemplo n.º 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" }
         });
     }
 }
Ejemplo n.º 5
0
 public void EndInit()
 {
     OneSignal.Init();
 }
Ejemplo n.º 6
0
        public void PostNotificationSuccessHandler(Foundation.NSDictionary result)
        {
            Dictionary <string, object> dict = NSDictToPureDict(result);

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

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