---
title: "isAvailable(forServiceType:)"
framework: social
role: symbol
role_heading: Type Method
path: "social/slcomposeviewcontroller/isavailable(forservicetype:)"
---

# isAvailable(forServiceType:)

Returns A Boolean value that indicates whether you can send a request for a particular service type.

## Declaration

```swift
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

Return Value Returns a Boolean value that indicates whether the service is accessible and whether at least one account is set up.

## Discussion

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

- [serviceType](social/slcomposeviewcontroller/servicetype.md)
