Instance Method

sharingServicePicker(_:delegateFor:)

Invoked to provide the delegate to the sharing service when the user has selected a service.

Declaration

optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateFor sharingService: NSSharingService) -> NSSharingServiceDelegate?

Parameters

sharingServicePicker

The sharing service picker.

sharingService

The selected sharing service.

Return Value

An object that implements the NSSharingServiceDelegate protocol the sharing service should use for this item’s transfer.

See Also

Customizing Behavior

func sharingServicePicker(NSSharingServicePicker, didChoose: NSSharingService?)

Invoked when the user has selected a service and before it is executed.