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