public static NotificationOpenedResult NotificationOpenedResultToXam(OneSignaliOS.OSNotificationOpenedResult notificationOpenedResult)
 {
     return(new NotificationOpenedResult {
         action = NotificationActionToXam(notificationOpenedResult.Action),
         notification = NotificationToXam(notificationOpenedResult.Notification)
     });
 }
Exemple #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);
        }
Exemple #3
0
 public void NotificationOpenedHandler(iOS.OSNotificationOpenedResult result)
 {
     OneSignal.onPushNotificationOpened(OSNotificationOpenedResultToNative(result));
 }
 public void NotificationOpened(OneSignaliOS.OSNotificationOpenedResult notificationOpenedResult)
 {
     _instance.NotificationOpened?.Invoke(NativeConversion.NotificationOpenedResultToXam(notificationOpenedResult));
 }