pub unsafe trait NSPreviewRepresentableActivityItem: NSObjectProtocol {
// Provided methods
unsafe fn item(&self) -> Retained<AnyObject>
where Self: Sized + Message { ... }
unsafe fn title(&self) -> Option<Retained<NSString>>
where Self: Sized + Message { ... }
unsafe fn imageProvider(&self) -> Option<Retained<NSItemProvider>>
where Self: Sized + Message { ... }
unsafe fn iconProvider(&self) -> Option<Retained<NSItemProvider>>
where Self: Sized + Message { ... }
}
Available on crate feature
NSPreviewRepresentingActivityItem
only.Expand description
Provided Methods§
Sourceunsafe fn title(&self) -> Option<Retained<NSString>>
unsafe fn title(&self) -> Option<Retained<NSString>>
A string representing the name or title of the item to be shared
Sourceunsafe fn imageProvider(&self) -> Option<Retained<NSItemProvider>>
unsafe 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.
Sourceunsafe fn iconProvider(&self) -> Option<Retained<NSItemProvider>>
unsafe 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.