com.gs.core.device

GsDevStateManager

Supported Products:

All


Detail

Method

method description
public static GsDevStateManager instance();

Return:

GsDevStateManager instance

Supported Products:

All

public boolean isDeviceConnected(String devName); is device connected

Params:

devName

Return:

true: connected, false: disconnected

Supported Products:

All

public boolean isUsbConnected(); Check whether USB is connect or not.

Return:

true: connected, false: disconnected

Supported Products:

ALL

public int getDeviceState(String devName); Get the state of the device.

Params:

devName
The name of the device.

Return:

int The state of the device.

Supported Products:

ALL

public void reboot(); reboot the device

Supported Products:

All

public String getDeviceMac(); get the device MAC

Return:

String: the device MAC.

Supported Products:

All


Member & Constant

Member description
public static final String NAME_EARPHONE 3.5mm headset device

Supported Products:

GXV3350, GXV3370, GXV3380

public static final String NAME_EHS EHS device

Supported Products:

GXV3350, GXV3370, GXV3380

public static final String NAME_USB_HEADSET USB headset device

Supported Products:

GXV3350, GXV3370, GXV3380

public static final String NAME_HDMI HDMI(out) device

Supported Products:

GXV3350, GXV3370, GXV3380

public static final String NAME_HDMI_IN HDMI in device

Supported Products:

GXV3350, GXV3370, GXV3380

public static final String NAME_SENSOR_MONITORING safe monitoring broadcast extra key

Supported Products:

WP820

public static final String NAME_UAC uac connection state

Supported Products:

GAC2570

public static final String SAFE_MONITORING_STATE_CHANGED_ACTION safe monitoring broadcast action

Supported Products:

WP820

public static final String EXTRA_STATE
public static final int SENSOR_MONITORING_TYPE_RUN safe monitoring type: run

Supported Products:

WP820

public static final int SENSOR_MONITORING_TYPE_TILT safe monitoring type: tilt

Supported Products:

WP820

public static final int SENSOR_MONITORING_TYPE_NOMOVE safe monitoring type: no move

Supported Products:

WP820

public static final int SENSOR_MONITORING_TYPE_PANIC safe monitoring type: panic, trigger by manual click multifunctional key

Supported Products:

WP820

public static final int STANDBY_MODE_ALWAYS_ON The standby mode "Always On". In this mode, device will never auto screen off.

Supported Products:

All

public static final int STANDBY_MODE_OCCUPANCY_BASED The standby mode "Occupancy Based". In this mode, device screen off timeout settings will take effect. Refer to {@link #setScreenOffTimeout(int)}.

Supported Products:

All