DeviceTypes Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Device types for Control.
[Android.Runtime.Register("android/service/controls/DeviceTypes", ApiSince=30, DoNotGenerateAcw=true)]
public class DeviceTypes : Java.Lang.Object
[<Android.Runtime.Register("android/service/controls/DeviceTypes", ApiSince=30, DoNotGenerateAcw=true)>]
type DeviceTypes = class
inherit Object
- Inheritance
- Attributes
Remarks
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.
Java documentation for android.service.controls.DeviceTypes.
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.
Constructors
| Name | Description |
|---|---|
| DeviceTypes(IntPtr, JniHandleOwnership) |
Creates a managed instance that represents an existing Java object. |
Fields
| Name | Description |
|---|---|
| TypeAcHeater |
Obsolete.
The air-conditioner/heater device type. |
| TypeAcUnit |
Obsolete.
The air-conditioning unit device type. |
| TypeAirFreshener |
Obsolete.
The air freshener device type. |
| TypeAirPurifier |
Obsolete.
The air purifier device type. |
| TypeAwning |
Obsolete.
The awning device type. |
| TypeBlinds |
Obsolete.
The blinds device type. |
| TypeCamera |
Obsolete.
The camera device type. |
| TypeCloset |
Obsolete.
The closet device type. |
| TypeCoffeeMaker |
Obsolete.
The coffee maker device type. |
| TypeCurtain |
Obsolete.
The curtain device type. |
| TypeDehumidifier |
Obsolete.
The dehumidifier device type. |
| TypeDishwasher |
Obsolete.
The dishwasher device type. |
| TypeDisplay |
Obsolete.
The display device type. |
| TypeDoor |
Obsolete.
The door device type. |
| TypeDoorbell |
Obsolete.
The doorbell device type. |
| TypeDrawer |
Obsolete.
The drawer device type. |
| TypeDryer |
Obsolete.
The dryer device type. |
| TypeFan |
Obsolete.
The fan device type. |
| TypeGarage |
Obsolete.
The garage device type. |
| TypeGate |
Obsolete.
The gate device type. |
| TypeGenericArmDisarm |
Obsolete.
The generic arm/disarm device type. |
| TypeGenericLockUnlock |
Obsolete.
The generic lock/unlock device type. |
| TypeGenericOnOff |
Obsolete.
The generic on/off device type. |
| TypeGenericOpenClose |
Obsolete.
The generic open/close device type. |
| TypeGenericStartStop |
Obsolete.
The generic start/stop device type. |
| TypeGenericTempSetting |
Obsolete.
The generic temperature-setting device type. |
| TypeGenericViewstream |
Obsolete.
The generic stream-viewing device type. |
| TypeHeater |
Obsolete.
The heater device type. |
| TypeHood |
Obsolete.
The hood device type. |
| TypeHumidifier |
Obsolete.
The humidifier device type. |
| TypeKettle |
Obsolete.
The kettle device type. |
| TypeLight |
Obsolete.
The light device type. |
| TypeLock |
Obsolete.
The lock device type. |
| TypeMicrowave |
Obsolete.
The microwave device type. |
| TypeMop |
Obsolete.
The mop device type. |
| TypeMower |
Obsolete.
The mower device type. |
| TypeMulticooker |
Obsolete.
The multicooker device type. |
| TypeOutlet |
Obsolete.
The outlet device type. |
| TypePergola |
Obsolete.
The pergola device type. |
| TypeRadiator |
Obsolete.
The radiator device type. |
| TypeRefrigerator |
Obsolete.
The refrigerator device type. |
| TypeRemoteControl |
Obsolete.
The remote control device type. |
| TypeRoutine |
Obsolete.
The routine type, which groups a series of actions across devices. |
| TypeSecuritySystem |
Obsolete.
The security system device type. |
| TypeSetTop |
Obsolete.
The set-top device type. |
| TypeShower |
Obsolete.
The shower device type. |
| TypeShutter |
Obsolete.
The shutter device type. |
| TypeSprinkler |
Obsolete.
The sprinkler device type. |
| TypeStandmixer |
Obsolete.
The stand mixer device type. |
| TypeStyler |
Obsolete.
The styler device type. |
| TypeSwitch |
Obsolete.
The switch device type. |
| TypeThermostat |
Obsolete.
The thermostat device type. |
| TypeTv |
Obsolete.
The television device type. |
| TypeUnknown |
Obsolete.
The unknown device type. |
| TypeVacuum |
Obsolete.
The vacuum device type. |
| TypeValve |
Obsolete.
The valve device type. |
| TypeWasher |
Obsolete.
The washer device type. |
| TypeWaterHeater |
Obsolete.
The water heater device type. |
| TypeWindow |
Obsolete.
The window device type. |
Properties
| Name | Description |
|---|---|
| Class |
Returns the runtime class of this |
| Handle |
The handle to the underlying Android instance. (Inherited from Object) |
| JniIdentityHashCode |
Gets the identity hash code assigned to this Java peer by the interop runtime. (Inherited from Object) |
| JniManagedPeerState | (Inherited from JavaObject) |
| JniPeerMembers |
Gets the JNI metadata used to access members of this Java binding. |
| PeerReference |
Gets the JNI object reference for this Java peer. (Inherited from Object) |
| ThresholdClass |
Gets the Java class used for virtual method dispatch. |
| ThresholdType |
Gets the managed type that declares this Java binding. |
Methods
| Name | Description |
|---|---|
| Clone() |
Creates and returns a copy of this object. (Inherited from Object) |
| Construct(JniObjectReference, JniObjectReferenceOptions) | (Inherited from JavaObject) |
| Dispose() |
Releases the resources held by this Java peer. (Inherited from Object) |
| Dispose(Boolean) |
Releases the resources held by this Java peer. (Inherited from Object) |
| DisposeUnlessReferenced() | (Inherited from JavaObject) |
| Equals(Object) | (Inherited from JavaObject) |
| Equals(Object) |
Indicates whether some other object is "equal to" this one. (Inherited from Object) |
| GetHashCode() |
Returns a hash code value for the object. (Inherited from Object) |
| JavaFinalize() |
Obsolete.
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. (Inherited from Object) |
| Notify() |
Wakes up a single thread that is waiting on this object's monitor. (Inherited from Object) |
| NotifyAll() |
Wakes up all threads that are waiting on this object's monitor. (Inherited from Object) |
| SetHandle(IntPtr, JniHandleOwnership) |
Sets the Handle property. (Inherited from Object) |
| SetPeerReference(JniObjectReference, JniObjectReferenceOptions) | (Inherited from JavaObject) |
| ToArray<T>() |
Creates a managed array from this Java array wrapper. (Inherited from Object) |
| ToString() |
Returns a string representation of the object. (Inherited from Object) |
| UnregisterFromRuntime() |
Unregisters this Java peer from the interop runtime. (Inherited from Object) |
| ValidDeviceType(Int32) |
Checks whether a value is within the accepted device-type range. |
| Wait() |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>. (Inherited from Object) |
| Wait(Int64, Int32) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
| Wait(Int64) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Explicit Interface Implementations
| Name | Description |
|---|---|
| IJavaPeerable.Disposed() | (Inherited from JavaObject) |
| IJavaPeerable.Finalized() | (Inherited from JavaObject) |
| IJavaPeerable.JniObjectReferenceControlBlock | (Inherited from JavaObject) |
| IJavaPeerable.SetJniIdentityHashCode(Int32) | (Inherited from JavaObject) |
| IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) | (Inherited from JavaObject) |
| IJavaPeerable.SetPeerReference(JniObjectReference) | (Inherited from JavaObject) |
Extension Methods
| Name | Description |
|---|---|
| GetJniTypeName(IJavaPeerable) |
Gets the JNI name of the type of the instance |
| JavaAs<TResult>(IJavaPeerable) |
Try to coerce |
| JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
| JavaCast<TResult>(IJavaObject) | |
| TryJavaCast<TResult>(IJavaPeerable, TResult) |
Try to coerce |