コード例 #1
0
 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));
 }
コード例 #4
0
 public void NotificationOpened(OneSignaliOS.OSNotificationOpenedResult notificationOpenedResult)
 {
     _instance.NotificationOpened?.Invoke(NativeConversion.NotificationOpenedResultToXam(notificationOpenedResult));
 }