One Logo Pool Ball
ExternalAccessory · IOS API REFERENCE

EAAccessoryManager.AccessoryDidDisconnectMessage

struct · iOS 27.0+ · SDK 27.1

struct AccessoryDidDisconnectMessage

Members (6)

static · iOS 27.0+

makeMessage

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

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.

static · iOS 27.0+

makeNotification

TypeScript
static makeNotification(message: EAAccessoryManager_AccessoryDidDisconnectMessage): Promise<_Foundation_Notification>
Swift declaration
@MainActor static func makeNotification(_ message: EAAccessoryManager.AccessoryDidDisconnectMessage) -> 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): EAAccessoryManager_AccessoryDidDisconnectMessage
Swift declaration
init(accessory: EAAccessory)
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 →