Initializer

init(named:)

Returns a sharing service instance representing the specified service name.

Declaration

init?(named serviceName: NSSharingService.Name)

Parameters

serviceName

The service name. The possible system provided values are listed in Available Sharing Services.

Return Value

An instance of NSSharingService for the specified service name.

See Also

Creating a Sharing Service

struct NSSharingService.Name

These constants list the available sharing services.