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

Name Description
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

Name Description
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

Name Description
Equality(DevicePlatform, DevicePlatform)

Checks the equality of the platform.

Inequality(DevicePlatform, DevicePlatform)

Checks the equality of the platform.

Applies to