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