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.

Overview

See NSSharingService for more information.

Topics

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

enum NSSharingService.SharingContentScope

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

Relationships

Inherits From

See Also

App Services

class NSSharingService

A service that lets users share content with other services, such as social media services, or apps, such as Mail and Safari.

class NSSharingServicePicker

A list of sharing services from which the user can choose.

protocol NSSharingServicePickerDelegate

A set of methods that you use to customize the service picker behavior.

protocol NSServicesMenuRequestor

A set of methods that support interaction with items users can share through a sharing service.