DeviceSelectedCallback Callback

Definition

Defines a callback for when a device is selected or unselected within a channel.

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

Parameters

context object
in The callback context.

deviceId int
in Identifier of the device being selected or zero if unselected.

Returns

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

Parameters

context Object
in The callback context.

deviceId int
in Identifier of the device being selected or zero if unselected.

Returns

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

Parameters

context IntPtr
in The callback context.

deviceId int
in Identifier of the device being selected or zero if unselected.

Returns

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

Parameters

context Object
in The callback context.

deviceId int
in Identifier of the device being selected or zero if unselected.

Returns

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

Parameters

context void *
in The callback context.

deviceId int
in Identifier of the device being selected or zero if unselected.

Returns

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