public static NotificationOpenedResult NotificationOpenedResultToXam(OneSignaliOS.OSNotificationOpenedResult notificationOpenedResult)
 {
     return(new NotificationOpenedResult {
         action = NotificationActionToXam(notificationOpenedResult.Action),
         notification = NotificationToXam(notificationOpenedResult.Notification)
     });
 }
예제 #2
0
        private OSNotificationOpenedResult OSNotificationOpenedResultToNative(iOS.OSNotificationOpenedResult result)
        {
            var openresult = new OSNotificationOpenedResult();

            openresult.action = new OSNotificationAction();
            iOS.OSNotificationAction action = result.Action;
            openresult.action.actionID = action.ActionID;
            openresult.action.type     = (OSNotificationAction.ActionType)(int) action.Type;

            openresult.notification = OSNotificationToNative(result.Notification);

            return(openresult);
        }
예제 #3
0
 public void NotificationOpenedHandler(iOS.OSNotificationOpenedResult result)
 {
     OneSignal.onPushNotificationOpened(OSNotificationOpenedResultToNative(result));
 }
 public void NotificationOpened(OneSignaliOS.OSNotificationOpenedResult notificationOpenedResult)
 {
     _instance.NotificationOpened?.Invoke(NativeConversion.NotificationOpenedResultToXam(notificationOpenedResult));
 }