pub unsafe trait NSPreviewRepresentableActivityItem: NSObjectProtocol {
// Provided methods
fn item(&self) -> Retained<AnyObject>
where Self: Sized + Message { ... }
fn title(&self) -> Option<Retained<NSString>>
where Self: Sized + Message { ... }
fn imageProvider(&self) -> Option<Retained<NSItemProvider>>
where Self: Sized + Message { ... }
fn iconProvider(&self) -> Option<Retained<NSItemProvider>>
where Self: Sized + Message { ... }
}Available on crate feature
NSPreviewRepresentingActivityItem only.Expand description
Provided Methods§
Sourcefn title(&self) -> Option<Retained<NSString>>
fn title(&self) -> Option<Retained<NSString>>
A string representing the name or title of the item to be shared
Sourcefn imageProvider(&self) -> Option<Retained<NSItemProvider>>
fn imageProvider(&self) -> Option<Retained<NSItemProvider>>
Provides an image appropriate to represent the item.
This image typically is a full-size representation of the content being shared. For instance, if sharing a link to a webpage, this might be the hero image on that webpage.
Sourcefn iconProvider(&self) -> Option<Retained<NSItemProvider>>
fn iconProvider(&self) -> Option<Retained<NSItemProvider>>
Provides an icon appropriate to represent the item.
This icon typically is a thumbnail-sized representation of the source of the content. For instance, if sharing a link to a webpage, this might be an icon representing the website overall.
Trait Implementations§
impl<T> ImplementedBy<T> for dyn NSPreviewRepresentableActivityItem
Source§impl ProtocolType for dyn NSPreviewRepresentableActivityItem
impl ProtocolType for dyn NSPreviewRepresentableActivityItem
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".