class AutoDeviceSelector: DeviceSelector
init
(
wearables
)
|
Creates an auto device selector that monitors the given wearables interface for device changes.
Signature
public init( wearables: WearablesInterface) Parameters |
activeDevice
: DeviceIdentifier?
[Get][Set] |
The currently active device identifier.
|
activeDeviceStream
()
|
Creates a stream of active device changes that updates whenever the device list changes.
Signature
public func activeDeviceStream() -> AnyAsyncSequence<DeviceIdentifier?> Returns AnyAsyncSequence<DeviceIdentifier?> |