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§
unsafe fn notificationActions(&self) -> Retained<NSArray<UNNotificationAction>>
Available on crate feature
objc2-user-notifications
only.Sourceunsafe fn setNotificationActions(
&self,
notification_actions: &NSArray<UNNotificationAction>,
)
Available on crate feature objc2-user-notifications
only.
unsafe fn setNotificationActions( &self, notification_actions: &NSArray<UNNotificationAction>, )
objc2-user-notifications
only.Setter for notificationActions
.
unsafe fn performNotificationDefaultAction(&self)
unsafe fn dismissNotificationContentExtension(&self)
unsafe fn mediaPlayingStarted(&self)
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.