One Logo Pool Ball
ExternalAccessory · IOS API REFERENCE

EAAccessoryManager.AccessoryDidConnectMessage

struct · iOS 27.0+ · SDK 27.1

struct AccessoryDidConnectMessage

Members (8)

static · iOS 27.0+

makeMessage

TypeScript
static makeMessage(notification: _Foundation_Notification): Promise<(EAAccessoryManager_AccessoryDidConnectMessage) | null>
Swift declaration
@MainActor static func makeMessage(_ notification: Notification) -> EAAccessoryManager.AccessoryDidConnectMessage?

Converts a posted notification into this main actor message type for any observers. To implement this method in your own `MainActorMessage` conformance, retrieve values from the ``Notification``'s ``Notification/userInfo`` and set them as properties on the message. - Parameter notification: The posted ``Notification``. - Returns: The converted `MainActorMessage` or `nil` if conversion is not possible.

get · iOS 27.0+

userSelected

TypeScript
get userSelected(): boolean
Swift declaration
var userSelected: Bool
set · iOS 27.0+

userSelected

TypeScript
set userSelected(value: boolean)
Swift declaration
var userSelected: Bool
static · iOS 27.0+

makeNotification

TypeScript
static makeNotification(message: EAAccessoryManager_AccessoryDidConnectMessage): Promise<_Foundation_Notification>
Swift declaration
@MainActor static func makeNotification(_ message: EAAccessoryManager.AccessoryDidConnectMessage) -> Notification

Converts a posted main actor message into a notification for any observers. To implement this method in your own `MainActorMessage` conformance, use the properties defined by the message to populate the ``Notification``'s ``Notification/userInfo``. - Parameters: - message: The posted `MainActorMessage`. - Returns: The converted ``Notification``.

get · iOS 27.0+

name

TypeScript
static get nameValue(): _Foundation_NSNotification_Name
Swift declaration
static var name: Notification.Name { get }

A optional name corresponding to this type, used to interoperate with notification posters and observers.

init · iOS 27.0+

init

TypeScript
static init(accessory: EAAccessory, userSelected?: boolean): EAAccessoryManager_AccessoryDidConnectMessage
Swift declaration
init(accessory: EAAccessory, userSelected: Bool = false)
get · iOS 27.0+

accessory

TypeScript
get accessory(): EAAccessory
Swift declaration
var accessory: EAAccessory
set · iOS 27.0+

accessory

TypeScript
set accessory(value: EAAccessory)
Swift declaration
var accessory: EAAccessory

Skipped declarations

No declarations were skipped in this snapshot.

All ExternalAccessory types →