Type Method

isAvailable(forServiceType:)

Returns whether you can send a request for a particular service type.

Declaration

class func isAvailable(forServiceType serviceType: String!) -> Bool

Parameters

serviceType

The social networking service. For a list of possible values, see Service Type Constants.

Return Value

Returns a Boolean value indicating whether the service is accessible and at least one account is set up.

Discussion

For the account to be available, the user must be logged into the social service in the device settings.

See Also

Checking the Social Service Type

var serviceType: String!

Specifies the social networking service.