UNNotificationContentExtension_Extensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Extension methods to the IUNNotificationContentExtension interface to support all the methods from the UNNotificationContentExtension protocol.
public static class UNNotificationContentExtension_Extensions
type UNNotificationContentExtension_Extensions = class
- Inheritance
-
UNNotificationContentExtension_Extensions
Remarks
The extension methods for IUNNotificationContentExtension interface allow developers to treat instances of the interface as having all the optional methods of the original UNNotificationContentExtension protocol. Since the interface only contains the required members, these extension methods allow developers to call the optional members of the protocol.
Methods
| Name | Description |
|---|---|
| DidReceiveNotificationResponse(IUNNotificationContentExtension, UNNotificationResponse, Action<UNNotificationContentExtensionResponseOption>) | |
| GetMediaPlayPauseButtonFrame(IUNNotificationContentExtension) |
Returns the rectangle that will be used to display a playback button. |
| GetMediaPlayPauseButtonTintColor(IUNNotificationContentExtension) |
Returns the tint color of the playback button. |
| GetMediaPlayPauseButtonType(IUNNotificationContentExtension) | |
| PauseMedia(IUNNotificationContentExtension) |
Method that is called when the user presses the pause button. |
| PlayMedia(IUNNotificationContentExtension) |
Method that is called when the user presses the play button. |