---
title: "forType(_:)"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/distributednotificationcenter/fortype(_:)"
---

# forType(_:)

Returns the distributed notification center for a particular notification center type.

## Declaration

```swift
class func forType(_ notificationCenterType: DistributedNotificationCenter.CenterType) -> DistributedNotificationCenter
```

## Parameters

- `notificationCenterType`: Notification center type being inquired about.

## Return Value

Return Value Distributed notification center for notificationCenterType.

## Discussion

Discussion Currently only one type, NSLocalNotificationCenterType, is supported.

## See Also

### Getting Distributed Notification Centers

- [default()](foundation/distributednotificationcenter/default().md)
