DevicePlatform Struct
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.
Represents the device platform that the application is running on.
public value class DevicePlatform : IEquatable<Microsoft::Maui::Devices::DevicePlatform>
public readonly struct DevicePlatform : IEquatable<Microsoft.Maui.Devices.DevicePlatform>
type DevicePlatform = struct
Public Structure DevicePlatform
Implements IEquatable(Of DevicePlatform)
- Inheritance
-
DevicePlatform
- Implements
Properties
Android |
Gets an instance of DevicePlatform that represents Android. |
iOS |
Gets an instance of DevicePlatform that represents iOS. |
MacCatalyst |
Gets an instance of DevicePlatform that represents Mac Catalyst. |
macOS |
Gets an instance of DevicePlatform that represents macOS. |
Tizen |
Gets an instance of DevicePlatform that represents Samsung Tizen. |
tvOS |
Gets an instance of DevicePlatform that represents Apple tvOS. |
Unknown |
Gets an instance of DevicePlatform that represents an unknown platform. This is used for when the current platform is unknown. |
UWP |
Obsolete.
Gets an instance of DevicePlatform that represents UWP. |
watchOS |
Gets an instance of DevicePlatform that represents Apple watchOS. |
WinUI |
Gets an instance of DevicePlatform that represents WinUI. |
Methods
Create(String) |
Creates a new device platform instance. This can be used to define your custom platforms. |
Equals(DevicePlatform) |
Compares the underlying DevicePlatform instances. |
Equals(Object) |
Checks the equality of the platform. |
GetHashCode() |
Gets the hash code for this platform instance. |
ToString() |
Returns a string representation of the current value of the device platform. |
Operators
Equality(DevicePlatform, DevicePlatform) |
Equality operator for equals. |
Inequality(DevicePlatform, DevicePlatform) |
Inequality operator. |