Constructor DeviceStateChangeEventArgs
Namespace: Belay.Core
Assembly: Belay.Core.dll
DeviceStateChangeEventArgs(DeviceConnectionState, DeviceConnectionState, string?, Exception?)
Initializes a new instance of the class.
csharp
public DeviceStateChangeEventArgs(DeviceConnectionState oldState, DeviceConnectionState newState, string? reason = null, Exception? exception = null)Parameters
oldState DeviceConnectionState
The previous connection state.
newState DeviceConnectionState
The new connection state.
reason string?
The reason for the state change.
exception Exception?
The exception that caused the state change.