UnityEngine.iOS.NotificationServices.RegisterForNotifications C# (CSharp) Method

RegisterForNotifications() public static method

Register to receive local and remote notifications of the specified types from a provider via Apple Push Service.

public static RegisterForNotifications ( NotificationType notificationTypes ) : void
notificationTypes NotificationType Notification types to register for.
return void
        public static void RegisterForNotifications(NotificationType notificationTypes)
        {
            RegisterForNotifications(notificationTypes, true);
        }

Same methods

NotificationServices::RegisterForNotifications ( NotificationType notificationTypes, bool registerForRemote ) : void

Usage Example

コード例 #1
0
 public static void RegisterNotificationSettings()
 {
     NotificationServices.RegisterForNotifications(
         NotificationType.Alert |
         NotificationType.Badge |
         NotificationType.Sound);
 }
All Usage Examples Of UnityEngine.iOS.NotificationServices::RegisterForNotifications