Instance Method

sharingServicePicker(_:didChoose:)

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

Declaration

optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, didChoose service: NSSharingService?)

Parameters

sharingServicePicker

The sharing service picker.

service

The sharing service the user selected. Invoked to give the delegate to the sharing service that is about to be executed.

See Also

Customizing Behavior

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

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