Protocol

NSSharingServiceDelegate

The NSSharingServiceDelegate protocol allows customization of the position and animation of the share sheet as well as be notified of the success or failure of the item being shared..

Overview

See NSSharingService for more information.

Symbols

Customizing Transition Animation

func sharingService(NSSharingService, sourceFrameOnScreenForShareItem: Any)

Invoked when the sharing service is performed and the sharing window is displayed, to present a transition between the original items and the sharing window.

Sharing Items

func sharingService(NSSharingService, willShareItems: [Any])

Invoked when the sharing service will share the specified items.

func sharingService(NSSharingService, didShareItems: [Any])

Invoked when the sharing service has finished sharing the items.

func sharingService(NSSharingService, didFailToShareItems: [Any], error: Error)

Invoked when the sharing service encountered an error when sharing items.

Constants

NSSharingContentScope

The sharing scope constants specify the nature of the things you are sharing.

Relationships

Inherits From