Contents

setAccessoryButtonEventsEnabled(_:channelUUID:completionHandler:)

Maps supported accessory button events to actions that begin and end transmission.

Declaration

func setAccessoryButtonEventsEnabled(_ enabled: Bool, channelUUID: UUID, completionHandler: (@Sendable ((any Error)?) -> Void)? = nil)
func setAccessoryButtonEventsEnabled(_ enabled: Bool, channelUUID: UUID) async throws

Parameters

  • enabled:

    A flag that accessory button events map to begin and end transmission actions. If your app doesn’t map these button events to transmission actions, you can disable them by setting the value to False.

  • channelUUID:

    The unique channel identifier of the active participant.

  • completionHandler:

    An error that indicates the reason why the system couldn’t set the supported accessory button events.

Discussion

See Also

Starting and stopping transmission