Contents

userNotificationCenter(_:shouldPresent:)

Sent to the delegate when the user notification center has decided not to present your notification.

Declaration

optional func userNotificationCenter(_ center: NSUserNotificationCenter, shouldPresent notification: NSUserNotification) -> Bool

Parameters

  • center:

    The user notification center.

  • notification:

    The user notification object.

Return Value

true if the user notification should be displayed regardless; false otherwise.