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
objectin The callback context.deviceId
intin Unique identifier for the device triggering the event.
Returns
typedef PlugAndPlayCallback = int Function(Object context, int deviceId)
Parameters
context
Objectin The callback context.deviceId
intin Unique identifier for the device triggering the event.
Returns
public delegate void _PlugAndPlayCallback(IntPtr context, int deviceId);
Parameters
context
IntPtrin The callback context.deviceId
intin Unique identifier for the device triggering the event.
Returns
@FunctionalInterface
public interface PlugAndPlayCallback {
int callback(Object context, int deviceId)
}
Parameters
context
Objectin The callback context.deviceId
intin Unique identifier for the device triggering the event.
Returns
typedef int (* id3DevicesPlugAndPlayCallback) (
void * context,
int deviceId)
Parameters
context
void *in The callback context.deviceId
intin Unique identifier for the device triggering the event.
Returns