public interface UNNotificationContentExtension
| Modifier and Type | Interface and Description |
|---|---|
static interface |
UNNotificationContentExtension.Block_didReceiveNotificationResponseCompletionHandler |
| Modifier and Type | Method and Description |
|---|---|
void |
didReceiveNotification(UNNotification notification)
This will be called to send the notification to be displayed by
the extension.
|
default void |
didReceiveNotificationResponseCompletionHandler(UNNotificationResponse response,
UNNotificationContentExtension.Block_didReceiveNotificationResponseCompletionHandler completion)
If implemented, the method will be called when the user taps on one
of the notification actions.
|
default void |
mediaPause() |
default void |
mediaPlay()
Called when the user taps the play or pause button.
|
default CGRect |
mediaPlayPauseButtonFrame()
Implementing this method and returning a non-empty frame will make
the notification draw a button that allows the user to play and pause
media content embedded in the notification.
|
default UIColor |
mediaPlayPauseButtonTintColor() |
default long |
mediaPlayPauseButtonType()
Implementing this method and returning a button type other that "None" will
make the notification attempt to draw a play/pause button correctly styled
for that type.
|
void didReceiveNotification(UNNotification notification)
default void didReceiveNotificationResponseCompletionHandler(UNNotificationResponse response, UNNotificationContentExtension.Block_didReceiveNotificationResponseCompletionHandler completion)
default void mediaPause()
default void mediaPlay()
default CGRect mediaPlayPauseButtonFrame()
default UIColor mediaPlayPauseButtonTintColor()
default long mediaPlayPauseButtonType()