---
title: shared()
framework: externalaccessory
role: symbol
role_heading: Type Method
path: externalaccessory/eaaccessorymanager/shared()
---

# shared()

Returns the shared accessory manager object for the iOS-based device.

## Declaration

```swift
class func shared() -> EAAccessoryManager
```

## Return Value

Return Value The shared accessory manager object.

## Discussion

Discussion You should always use this method to obtain the accessory manager object and should not try to create instances directly.
