PlugAndPlayCallback Callback

Definition

Defines a callback for handling plug-and-play events, such as device connection or disconnection.

plug_and_play_callback(context: object, device_id: int) -> int

Parameters

context object
in The callback context.

deviceId int
in Unique identifier for the device triggering the event.

Returns

int
An error code.
See DevicesError file for the list of possible error codes.
typedef PlugAndPlayCallback = int Function(Object context, int deviceId)

Parameters

context Object
in The callback context.

deviceId int
in Unique identifier for the device triggering the event.

Returns

int
An error code.
See DevicesError file for the list of possible error codes.
public delegate void _PlugAndPlayCallback(IntPtr context, int deviceId);

Parameters

context IntPtr
in The callback context.

deviceId int
in Unique identifier for the device triggering the event.

Returns

int
An error code.
See DevicesError file for the list of possible error codes.
@FunctionalInterface
public interface PlugAndPlayCallback {
    int callback(Object context, int deviceId)
}

Parameters

context Object
in The callback context.

deviceId int
in Unique identifier for the device triggering the event.

Returns

int
An error code.
See DevicesError file for the list of possible error codes.
typedef int (* id3DevicesPlugAndPlayCallback) (
    void * context,
    int deviceId)

Parameters

context void *
in The callback context.

deviceId int
in Unique identifier for the device triggering the event.

Returns

int
An error code.
See id3DevicesError file for the list of possible error codes.