Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 internal static extern void EM_InitNotifications(ref iOSNotificationAuthOptions authOptions, ref iOSNotificationListenerInfo listener, string jsonCategories);