API reference

SpecificDeviceSelector Class

Modifiers: const
A device selector that always selects a specific, predetermined device. Use this when you want to target operations to a particular device by its identifier.

Signature

class SpecificDeviceSelector: DeviceSelector

Constructors

init ( device )
Creates a device selector that targets a specific device.
Signature
public init( device: DeviceIdentifier)
Parameters
device: DeviceIdentifier  The identifier of the device to always select.

Properties

activeDevice : DeviceIdentifier?
[Get]
The currently active device identifier.

Functions

activeDeviceStream ()
Creates a stream that immediately yields the specific device and then completes.
Signature
public func activeDeviceStream() -> AnyAsyncSequence<DeviceIdentifier?>
Returns
AnyAsyncSequence<DeviceIdentifier?>