Share via


DeviceIdiom Struct

Definition

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

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

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

Equality(DeviceIdiom, DeviceIdiom)

Equality operator for equals.

Inequality(DeviceIdiom, DeviceIdiom)

Inequality operator.

Applies to