Język

Control.StatelessBuilder.SetDeviceType(Int32) Method

Definition

Sets the device type, or uses the unknown type if the supplied value is invalid.

[Android.Runtime.Register("setDeviceType", "(I)Landroid/service/controls/Control$StatelessBuilder;", "", ApiSince=30)]
public Android.Service.Controls.Control.StatelessBuilder SetDeviceType(int deviceType);
[<Android.Runtime.Register("setDeviceType", "(I)Landroid/service/controls/Control$StatelessBuilder;", "", ApiSince=30)>]
member this.SetDeviceType : int -> Android.Service.Controls.Control.StatelessBuilder

Parameters

deviceType
Int32

type of device represented by this Control, used to determine the default icon and color. Value is one of the following: DeviceTypes.TYPE_GENERIC_ON_OFF; DeviceTypes.TYPE_GENERIC_START_STOP; DeviceTypes.TYPE_GENERIC_OPEN_CLOSE; DeviceTypes.TYPE_GENERIC_LOCK_UNLOCK; DeviceTypes.TYPE_GENERIC_ARM_DISARM; DeviceTypes.TYPE_GENERIC_TEMP_SETTING; DeviceTypes.TYPE_GENERIC_VIEWSTREAM; DeviceTypes.TYPE_UNKNOWN; DeviceTypes.TYPE_AC_HEATER; DeviceTypes.TYPE_AC_UNIT; DeviceTypes.TYPE_AIR_FRESHENER; DeviceTypes.TYPE_AIR_PURIFIER; DeviceTypes.TYPE_COFFEE_MAKER; DeviceTypes.TYPE_DEHUMIDIFIER; DeviceTypes.TYPE_DISPLAY; DeviceTypes.TYPE_FAN; DeviceTypes.TYPE_HOOD; DeviceTypes.TYPE_HUMIDIFIER; DeviceTypes.TYPE_KETTLE; DeviceTypes.TYPE_LIGHT; DeviceTypes.TYPE_MICROWAVE; DeviceTypes.TYPE_OUTLET; DeviceTypes.TYPE_RADIATOR; DeviceTypes.TYPE_REMOTE_CONTROL; DeviceTypes.TYPE_SET_TOP; DeviceTypes.TYPE_STANDMIXER; DeviceTypes.TYPE_STYLER; DeviceTypes.TYPE_SWITCH; DeviceTypes.TYPE_TV; DeviceTypes.TYPE_WATER_HEATER; DeviceTypes.TYPE_DISHWASHER; DeviceTypes.TYPE_DRYER; DeviceTypes.TYPE_MOP; DeviceTypes.TYPE_MOWER; DeviceTypes.TYPE_MULTICOOKER; DeviceTypes.TYPE_SHOWER; DeviceTypes.TYPE_SPRINKLER; DeviceTypes.TYPE_WASHER; DeviceTypes.TYPE_VACUUM; DeviceTypes.TYPE_AWNING; DeviceTypes.TYPE_BLINDS; DeviceTypes.TYPE_CLOSET; DeviceTypes.TYPE_CURTAIN; DeviceTypes.TYPE_DOOR; DeviceTypes.TYPE_DRAWER; DeviceTypes.TYPE_GARAGE; DeviceTypes.TYPE_GATE; DeviceTypes.TYPE_PERGOLA; DeviceTypes.TYPE_SHUTTER; DeviceTypes.TYPE_WINDOW; DeviceTypes.TYPE_VALVE; DeviceTypes.TYPE_LOCK; DeviceTypes.TYPE_SECURITY_SYSTEM; DeviceTypes.TYPE_HEATER; DeviceTypes.TYPE_REFRIGERATOR; DeviceTypes.TYPE_THERMOSTAT; DeviceTypes.TYPE_CAMERA; DeviceTypes.TYPE_DOORBELL; DeviceTypes.TYPE_ROUTINE

Returns

this This value cannot be null.

Attributes

Remarks

Android reference for android.service.controls.Control.StatelessBuilder.setDeviceType.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to