Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
DeviceIdiom Struct
Definition
- Namespace:
- Microsoft.Maui.Devices
- Assembly:
- Microsoft.Maui.Essentials.dll
- Source:
- DeviceIdiom.shared.cs
- Source:
- DeviceIdiom.shared.cs
- Source:
- DeviceIdiom.shared.cs
- Source:
- DeviceIdiom.shared.cs
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.
Represents the idiom (form factor) of the device.
public value class DeviceIdiom : IEquatable<Microsoft::Maui::Devices::DeviceIdiom>
public readonly struct DeviceIdiom : IEquatable<Microsoft.Maui.Devices.DeviceIdiom>
type DeviceIdiom = struct
Public Structure DeviceIdiom
Implements IEquatable(Of DeviceIdiom)
- Inheritance
-
DeviceIdiom
- Implements
Properties
| Name | Description |
|---|---|
| Desktop |
Gets an instance of DeviceIdiom that represents a desktop computer idiom. |
| Phone |
Gets an instance of DeviceIdiom that represents a (mobile) phone idiom. |
| Tablet |
Gets an instance of DeviceIdiom that represents a tablet idiom. |
| TV |
Gets an instance of DeviceIdiom that represents a television (TV) idiom. |
| Unknown |
Gets an instance of DeviceIdiom that represents an unknown idiom. This is used for when the current device idiom is unknown. |
| Watch |
Gets an instance of DeviceIdiom that represents a watch idiom. |
Methods
| Name | Description |
|---|---|
| Create(String) |
Creates a new device idiom instance. This can be used to define your custom idioms. |
| Equals(DeviceIdiom) |
Compares the underlying DeviceIdiom instances. |
| Equals(Object) |
Checks the equality of the idiom. |
| GetHashCode() |
Gets the hash code for this idiom instance. |
| ToString() |
Returns a string representation of the current device idiom. |
Operators
| Name | Description |
|---|---|
| Equality(DeviceIdiom, DeviceIdiom) |
Equality operator for equals. |
| Inequality(DeviceIdiom, DeviceIdiom) |
Inequality operator. |
Applies to
Feedback
Was this page helpful?
