Instance Property

supportsContentExtensions

A Boolean value indicating whether the current device supports notification content extensions.

Declaration

iOS, UIKit for Mac, tvOS, watchOS
@property(readonly, nonatomic) BOOL supportsContentExtensions;
macOS
@property(readonly, atomic) BOOL supportsContentExtensions;

Discussion

Notification content extensions let you customize the appearance of the alerts displayed for your app's notifications. The value of this property is YES for devices that support notification content extensions and NO for devices that do not support them. For information about how to implement a notification content extension, see Customizing the Appearance of Notifications.

See Also

Managing Settings and Authorization

- requestAuthorizationWithOptions:completionHandler:

Requests authorization to interact with the user when local and remote notifications are delivered to the user's device.

- getNotificationSettingsWithCompletionHandler:

Requests the notification settings for this app.

UNAuthorizationOptions

Constants for requesting authorization to interact with the user.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software