pub unsafe trait NSSharingServiceDelegate: NSObjectProtocol + IsMainThreadOnly {
// Provided methods
unsafe fn sharingService_willShareItems(
&self,
sharing_service: &NSSharingService,
items: &NSArray
)
where Self: Sized + Message { ... }
unsafe fn sharingService_didFailToShareItems_error(
&self,
sharing_service: &NSSharingService,
items: &NSArray,
error: &NSError
)
where Self: Sized + Message { ... }
unsafe fn sharingService_didShareItems(
&self,
sharing_service: &NSSharingService,
items: &NSArray
)
where Self: Sized + Message { ... }
unsafe fn sharingService_sourceFrameOnScreenForShareItem(
&self,
sharing_service: &NSSharingService,
item: &AnyObject
) -> NSRect
where Self: Sized + Message { ... }
unsafe fn sharingService_transitionImageForShareItem_contentRect(
&self,
sharing_service: &NSSharingService,
item: &AnyObject,
content_rect: NonNull<NSRect>
) -> Option<Id<NSImage>>
where Self: Sized + Message { ... }
unsafe fn sharingService_sourceWindowForShareItems_sharingContentScope(
&self,
sharing_service: &NSSharingService,
items: &NSArray,
sharing_content_scope: NonNull<NSSharingContentScope>
) -> Option<Id<NSWindow>>
where Self: Sized + Message { ... }
unsafe fn anchoringViewForSharingService_showRelativeToRect_preferredEdge(
&self,
sharing_service: &NSSharingService,
positioning_rect: NonNull<NSRect>,
preferred_edge: NonNull<NSRectEdge>
) -> Option<Id<NSView>>
where Self: Sized + Message { ... }
}
Available on crate feature
NSSharingService
only.Provided Methods§
Available on crate feature
NSImage
only.Available on crate features
NSResponder
and NSWindow
only.unsafe fn anchoringViewForSharingService_showRelativeToRect_preferredEdge( &self, sharing_service: &NSSharingService, positioning_rect: NonNull<NSRect>, preferred_edge: NonNull<NSRectEdge> ) -> Option<Id<NSView>>
Available on crate features
NSResponder
and NSView
only.