DeviceManager.getDeviceType Method

Module: DeviceManager

Definition

Retrieves the type for a specified device.

get_device_type(device_id: int) -> DeviceType

Parameters

device_id int
in The device’s identifier.

Returns

The device’s type.

Exceptions

An error has occurred during Devices Library execution.
static int getDeviceType(int deviceId)

Parameters

deviceId int
in The device’s identifier.

Returns

int
The device’s type.

Exceptions

An error has occurred during Devices Library execution.
public static DeviceType GetDeviceType(int deviceId)

Parameters

deviceId int
in The device’s identifier.

Returns

The device’s type.

Exceptions

An error has occurred during Devices Library execution.
public static int getDeviceType(int deviceId) throws DevicesException

Parameters

deviceId int
in The device’s identifier.

Returns

The device’s type.

Exceptions

An error has occurred during Devices Library execution.
int id3DevicesDeviceManager_GetDeviceType (
    int deviceId,
    id3DevicesDeviceType * eDeviceType)

Parameters

deviceId int
in The device’s identifier.

out The device’s type.

Returns

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