Trait NSExtensionContextUNNotificationContentExtension

Source
pub unsafe trait NSExtensionContextUNNotificationContentExtension:
    ClassType
    + Sized
    + Sealed {
    // Provided methods
    unsafe fn notificationActions(
        &self,
    ) -> Retained<NSArray<UNNotificationAction>> { ... }
    unsafe fn setNotificationActions(
        &self,
        notification_actions: &NSArray<UNNotificationAction>,
    ) { ... }
    unsafe fn performNotificationDefaultAction(&self) { ... }
    unsafe fn dismissNotificationContentExtension(&self) { ... }
    unsafe fn mediaPlayingStarted(&self) { ... }
    unsafe fn mediaPlayingPaused(&self) { ... }
}
Available on crate feature UNNotificationContentExtension only.
Expand description

Category “UNNotificationContentExtension” on NSExtensionContext.

Provided Methods§

Source

unsafe fn notificationActions(&self) -> Retained<NSArray<UNNotificationAction>>

Available on crate feature objc2-user-notifications only.
Source

unsafe fn setNotificationActions( &self, notification_actions: &NSArray<UNNotificationAction>, )

Available on crate feature objc2-user-notifications only.

Setter for notificationActions.

Source

unsafe fn performNotificationDefaultAction(&self)

Source

unsafe fn dismissNotificationContentExtension(&self)

Source

unsafe fn mediaPlayingStarted(&self)

Source

unsafe fn mediaPlayingPaused(&self)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl NSExtensionContextUNNotificationContentExtension for NSExtensionContext

Implementors§