Structure

UNNotificationPresentationOptions

Constants indicating how to present a notification in a foreground app.

Declaration

struct UNNotificationPresentationOptions

Topics

Constants

static var badge: UNNotificationPresentationOptions

Apply the notification's badge value to the app’s icon.

static var sound: UNNotificationPresentationOptions

Play the sound associated with the notification.

static var alert: UNNotificationPresentationOptions

Display the alert using the content provided by the notification.

Relationships

Conforms To

See Also

Receiving Notifications

func userNotificationCenter(UNUserNotificationCenter, willPresent: UNNotification, withCompletionHandler: (UNNotificationPresentationOptions) -> Void)

Asks the delegate how to handle a notification that arrived while the app was running in the foreground.