Share via


DevicePlatform Struct

Definition

The device platform that the application is running on.

public struct DevicePlatform : IEquatable<Xamarin.Essentials.DevicePlatform>
[System.Runtime.CompilerServices.IsReadOnly]
public struct DevicePlatform : IEquatable<Xamarin.Essentials.DevicePlatform>
Inheritance
System.ValueType
DevicePlatform
Attributes
System.Runtime.CompilerServices.IsReadOnlyAttribute
Implements
System.IEquatable<DevicePlatform>

Properties

Android

Gets the Android platform.

iOS

Gets the iOS platform.

macOS
Tizen

Gets the Tizen platform

tvOS

Gets the tvOS platform

Unknown

Gets the unknown platform.

UWP

Gets the UWP platform.

watchOS

Gets the watchOS platform

Methods

Create(String)

Creates a new Device Platform.

Equals(DevicePlatform)

Checks the equality of the platform.

Equals(Object)

Checks the equality of the platform.

GetHashCode()

Gets the hash code of the platform.

ToString()

The string representation of the platform.

Operators

Equality(DevicePlatform, DevicePlatform)

Checks the equality of the platform.

Inequality(DevicePlatform, DevicePlatform)

Checks the equality of the platform.

Applies to