DeviceTypes


public class DeviceTypes
extends Object

java.lang.Object
   ↳ android.service.controls.DeviceTypes


Device types for Control. Each Control declares a type for the device they represent. This type will be used to determine icons and colors.

The type of the device may change on status updates of the Control. For example, a device of TYPE_OUTLET could be determined by the ControlsProviderService to be a TYPE_COFFEE_MAKER and change the type for that Control, therefore possibly changing icon and color.

In case the device type is not know by the application but the basic function is, or there is no provided type, one of the generic types (those starting with TYPE_GENERIC) can be used. These will provide an identifiable icon based on the basic function of the device.

Summary

Constants

int TYPE_AC_HEATER

Value is one of the following:

int TYPE_AC_UNIT

Value is one of the following:

int TYPE_AIR_FRESHENER

Value is one of the following:

int TYPE_AIR_PURIFIER

Value is one of the following:

int TYPE_AWNING

Value is one of the following:

int TYPE_BLINDS

Value is one of the following:

int TYPE_CAMERA

Value is one of the following:

int TYPE_CLOSET

Value is one of the following:

int TYPE_COFFEE_MAKER

Value is one of the following:

int TYPE_CURTAIN

Value is one of the following:

int TYPE_DEHUMIDIFIER

Value is one of the following:

int TYPE_DISHWASHER

Value is one of the following:

int TYPE_DISPLAY

Value is one of the following:

int TYPE_DOOR

Value is one of the following:

int TYPE_DOORBELL

Value is one of the following:

int TYPE_DRAWER

Value is one of the following:

int TYPE_DRYER

Value is one of the following:

int TYPE_FAN

Value is one of the following:

int TYPE_GARAGE

Value is one of the following:

int TYPE_GATE

Value is one of the following:

int TYPE_GENERIC_ARM_DISARM

Value is one of the following:

int TYPE_GENERIC_LOCK_UNLOCK

Value is one of the following:

int TYPE_GENERIC_ON_OFF

Value is one of the following:

int TYPE_GENERIC_OPEN_CLOSE

Value is one of the following:

int TYPE_GENERIC_START_STOP

Value is one of the following:

int TYPE_GENERIC_TEMP_SETTING

Value is one of the following:

int TYPE_GENERIC_VIEWSTREAM

Value is one of the following:

int TYPE_HEATER

Value is one of the following:

int TYPE_HOOD

Value is one of the following:

int TYPE_HUMIDIFIER

Value is one of the following:

int TYPE_KETTLE

Value is one of the following:

int TYPE_LIGHT

Value is one of the following:

int TYPE_LOCK

Value is one of the following:

int TYPE_MICROWAVE

Value is one of the following:

int TYPE_MOP

Value is one of the following:

int TYPE_MOWER

Value is one of the following:

int TYPE_MULTICOOKER

Value is one of the following:

int TYPE_OUTLET

Value is one of the following:

int TYPE_PERGOLA

Value is one of the following:

int TYPE_RADIATOR

Value is one of the following:

int TYPE_REFRIGERATOR

Value is one of the following:

int TYPE_REMOTE_CONTROL

Value is one of the following:

int TYPE_ROUTINE

Value is one of the following:

int TYPE_SECURITY_SYSTEM

Value is one of the following:

int TYPE_SET_TOP

Value is one of the following:

int TYPE_SHOWER

Value is one of the following:

int TYPE_SHUTTER

Value is one of the following:

int TYPE_SPRINKLER

Value is one of the following:

int TYPE_STANDMIXER

Value is one of the following:

int TYPE_STYLER

Value is one of the following:

int TYPE_SWITCH

Value is one of the following:

int TYPE_THERMOSTAT

Value is one of the following:

int TYPE_TV

Value is one of the following:

int TYPE_UNKNOWN

Value is one of the following:

int TYPE_VACUUM

Value is one of the following:

int TYPE_VALVE

Value is one of the following:

int TYPE_WASHER

Value is one of the following:

int TYPE_WATER_HEATER

Value is one of the following:

int TYPE_WINDOW

Value is one of the following:

Public methods

static boolean validDeviceType(int deviceType)

Inherited methods

Constants

TYPE_AC_HEATER

Added in API level 30
public static final int TYPE_AC_HEATER

Value is one of the following:

TYPE_AC_UNIT

Added in API level 30
public static final int TYPE_AC_UNIT

Value is one of the following:

TYPE_AIR_FRESHENER

Added in API level 30
public static final int TYPE_AIR_FRESHENER

Value is one of the following:

TYPE_AIR_PURIFIER

Added in API level 30
public static final int TYPE_AIR_PURIFIER

Value is one of the following:

TYPE_AWNING

Added in API level 30
public static final int TYPE_AWNING

Value is one of the following:

TYPE_BLINDS

Added in API level 30
public static final int TYPE_BLINDS

Value is one of the following:

TYPE_CAMERA

Added in API level 30
public static final int TYPE_CAMERA

Value is one of the following:

TYPE_CLOSET

Added in API level 30
public static final int TYPE_CLOSET

Value is one of the following:

TYPE_COFFEE_MAKER

Added in API level 30
public static final int TYPE_COFFEE_MAKER

Value is one of the following:

TYPE_CURTAIN

Added in API level 30
public static final int TYPE_CURTAIN

Value is one of the following:

TYPE_DEHUMIDIFIER

Added in API level 30
public static final int TYPE_DEHUMIDIFIER

Value is one of the following:

TYPE_DISHWASHER

Added in API level 30
public static final int TYPE_DISHWASHER

Value is one of the following:

TYPE_DISPLAY

Added in API level 30
public static final int TYPE_DISPLAY

Value is one of the following:

TYPE_DOOR

Added in API level 30
public static final int TYPE_DOOR

Value is one of the following:

TYPE_DOORBELL

Added in API level 30
public static final int TYPE_DOORBELL

Value is one of the following:

TYPE_DRAWER

Added in API level 30
public static final int TYPE_DRAWER

Value is one of the following:

TYPE_DRYER

Added in API level 30
public static final int TYPE_DRYER

Value is one of the following:

TYPE_FAN

Added in API level 30
public static final int TYPE_FAN

Value is one of the following:

TYPE_GARAGE

Added in API level 30
public static final int TYPE_GARAGE

Value is one of the following:

TYPE_GATE

Added in API level 30
public static final int TYPE_GATE

Value is one of the following:

TYPE_GENERIC_ARM_DISARM

Added in API level 30
public static final int TYPE_GENERIC_ARM_DISARM

Value is one of the following:

TYPE_GENERIC_LOCK_UNLOCK

Added in API level 30
public static final int TYPE_GENERIC_LOCK_UNLOCK

Value is one of the following:

TYPE_GENERIC_ON_OFF

Added in API level 30
public static final int TYPE_GENERIC_ON_OFF

Value is one of the following:

TYPE_GENERIC_OPEN_CLOSE

Added in API level 30
public static final int TYPE_GENERIC_OPEN_CLOSE

Value is one of the following:

TYPE_GENERIC_START_STOP

Added in API level 30
public static final int TYPE_GENERIC_START_STOP

Value is one of the following:

TYPE_GENERIC_TEMP_SETTING

Added in API level 30
public static final int TYPE_GENERIC_TEMP_SETTING

Value is one of the following:

TYPE_GENERIC_VIEWSTREAM

Added in API level 30
public static final int TYPE_GENERIC_VIEWSTREAM

Value is one of the following:

TYPE_HEATER

Added in API level 30
public static final int TYPE_HEATER

Value is one of the following:

TYPE_HOOD

Added in API level 30
public static final int TYPE_HOOD

Value is one of the following:

TYPE_HUMIDIFIER

Added in API level 30
public static final int TYPE_HUMIDIFIER

Value is one of the following:

TYPE_KETTLE

Added in API level 30
public static final int TYPE_KETTLE

Value is one of the following:

TYPE_LIGHT

Added in API level 30
public static final int TYPE_LIGHT

Value is one of the following:

TYPE_LOCK

Added in API level 30
public static final int TYPE_LOCK

Value is one of the following:

TYPE_MICROWAVE

Added in API level 30
public static final int TYPE_MICROWAVE

Value is one of the following:

TYPE_MOP

Added in API level 30
public static final int TYPE_MOP

Value is one of the following:

TYPE_MOWER

Added in API level 30
public static final int TYPE_MOWER

Value is one of the following:

TYPE_MULTICOOKER

Added in API level 30
public static final int TYPE_MULTICOOKER

Value is one of the following:

TYPE_OUTLET

Added in API level 30
public static final int TYPE_OUTLET

Value is one of the following:

TYPE_PERGOLA

Added in API level 30
public static final int TYPE_PERGOLA

Value is one of the following:

TYPE_RADIATOR

Added in API level 30
public static final int TYPE_RADIATOR

Value is one of the following:

TYPE_REFRIGERATOR

Added in API level 30
public static final int TYPE_REFRIGERATOR

Value is one of the following:

TYPE_REMOTE_CONTROL

Added in API level 30
public static final int TYPE_REMOTE_CONTROL

Value is one of the following:

TYPE_ROUTINE

Added in API level 30
public static final int TYPE_ROUTINE

Value is one of the following:

TYPE_SECURITY_SYSTEM

Added in API level 30
public static final int TYPE_SECURITY_SYSTEM

Value is one of the following:

TYPE_SET_TOP

Added in API level 30
public static final int TYPE_SET_TOP

Value is one of the following:

TYPE_SHOWER

Added in API level 30
public static final int TYPE_SHOWER

Value is one of the following:

TYPE_SHUTTER

Added in API level 30
public static final int TYPE_SHUTTER

Value is one of the following:

TYPE_SPRINKLER

Added in API level 30
public static final int TYPE_SPRINKLER

Value is one of the following:

TYPE_STANDMIXER

Added in API level 30
public static final int TYPE_STANDMIXER

Value is one of the following:

TYPE_STYLER

Added in API level 30
public static final int TYPE_STYLER

Value is one of the following:

TYPE_SWITCH

Added in API level 30
public static final int TYPE_SWITCH

Value is one of the following:

TYPE_THERMOSTAT

Added in API level 30
public static final int TYPE_THERMOSTAT

Value is one of the following:

TYPE_TV

Added in API level 30
public static final int TYPE_TV

Value is one of the following:

TYPE_UNKNOWN

Added in API level 30
public static final int TYPE_UNKNOWN

Value is one of the following:

TYPE_VACUUM

Added in API level 30
public static final int TYPE_VACUUM

Value is one of the following:

TYPE_VALVE

Added in API level 30
public static final int TYPE_VALVE

Value is one of the following:

TYPE_WASHER

Added in API level 30
public static final int TYPE_WASHER

Value is one of the following:

TYPE_WATER_HEATER

Added in API level 30
public static final int TYPE_WATER_HEATER

Value is one of the following:

TYPE_WINDOW

Added in API level 30
public static final int TYPE_WINDOW

Value is one of the following:

Public methods

validDeviceType

Added in API level 30
public static boolean validDeviceType (int deviceType)

Parameters
deviceType int

Returns
boolean