Protocol

NSSharingServiceDelegate

A set of methods that you use to customize the position and animation of a share sheet, and to be notified whether the item is successfully shared.

Declaration

@protocol NSSharingServiceDelegate

Overview

See NSSharingService for more information.

Topics

Sharing Items

- sharingService:willShareItems:

Invoked when the sharing service will share the specified items.

- sharingService:didShareItems:

Invoked when the sharing service has finished sharing the items.

- sharingService:didFailToShareItems:error:

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

Customizing Transition Animation

- sharingService:sourceFrameOnScreenForShareItem:

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.

- sharingService:transitionImageForShareItem:contentRect:

Invoked to allow returning a custom transition image when sharing an item.

- sharingService:sourceWindowForShareItems:sharingContentScope:

Returns the window that contained the share items.

NSSharingContentScope

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

Relationships

Inherits From

See Also

Sharing Items and Customizing the UI

delegate

Specifies the delegate of the sharing service.