Contents

settings(context:for:)

Reads the accessory and returns a fresh snapshot of its settings.

Declaration

@MainActor func settings(context: Self.Context, for accessory: HMAccessory) async throws -> Self.Container

Parameters

  • context:

    The context you supplied to Homeaccessorysettings.

  • accessory:

    The accessory to read settings from.

Return Value

The accessory’s current settings.

See Also

Accessing the settings