internal static iOSNotificationAuthOptions ToIOSNotificationAuthOptions(NotificationAuthOptions opts) { var iOSAuthOptions = new iOSNotificationAuthOptions(); iOSAuthOptions.isAlertAllowed = (opts & NotificationAuthOptions.Alert) == NotificationAuthOptions.Alert ? 1 : 0; iOSAuthOptions.isBadgeAllowed = (opts & NotificationAuthOptions.Badge) == NotificationAuthOptions.Badge ? 1 : 0; iOSAuthOptions.isSoundAllowed = (opts & NotificationAuthOptions.Sound) == NotificationAuthOptions.Sound ? 1 : 0; return(iOSAuthOptions); }
internal static extern void _InitNotifications(ref iOSNotificationAuthOptions authOptions, ref iOSNotificationListenerInfo listener, string jsonCategories);