API reference

DeviceStateSession Class

Extends Sendable
Modifiers: const
Manages a session for monitoring device state changes.

Signature

class DeviceStateSession: Sendable

Constructors

init ( deviceSelector )
Signature
public init( deviceSelector: DeviceSelector)
Parameters
deviceSelector: DeviceSelector

Properties

state : SessionState
[Get]
The current state of the device session.

Functions

start ()
Starts the device state session.
Begins monitoring the selected device for state changes.
Signature
public func start()
stop ()
Stops the device state session.
Releases resources and stops monitoring device state changes.
Signature
public func stop()