TargetIdiom Enum
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.
Caution
Use Microsoft.Maui.Devices.DeviceIdiom instead.
Specifies the device form factor.
public enum class TargetIdiom
[System.Obsolete("Use Microsoft.Maui.Devices.DeviceIdiom instead.")]
public enum TargetIdiom
[<System.Obsolete("Use Microsoft.Maui.Devices.DeviceIdiom instead.")>]
type TargetIdiom =
Public Enum TargetIdiom
- Inheritance
-
TargetIdiom
- Attributes
Fields
| Name | Value | Description |
|---|---|---|
| Unsupported | 0 | The device idiom is not supported. |
| Phone | 1 | The device is a phone. |
| Tablet | 2 | The device is a tablet. |
| Desktop | 3 | The device is a desktop computer. |
| TV | 4 | The device is a television. |
| Watch | 5 | The device is a watch. |