Sprache

Control.StatelessBuilder.SetDeviceType(Int32) Methode

Definition

Legt den Gerätetyp fest oder verwendet den unbekannten Typ, wenn der angegebene Wert ungültig ist.

[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

Parameter

deviceType
Int32

Typ des Geräts, das durch dieses Steuerelement dargestellt wird, verwendet, um das Standardsymbol und die Standardfarbe zu bestimmen. Der Wert ist einer der folgenden: 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

Gibt zurück

dieser Wert darf nicht null sein.

Attribute

Hinweise

Android-Referenz für android.service.controls.Control.StatelessBuilder.setDeviceType.

Teile dieser Seite sind Änderungen auf der Grundlage von Arbeiten, die von der Android Open Source Project erstellt und gemeinsam verwendet und gemäß den in der 2.5 Attribution License beschriebenen Begriffen verwendet werden.

Gilt für: