Skip to main content

PlatformInfo

Namespace: BlazorNative.Core

Static information about the running platform, served by IMobileBridge.GetPlatformInfoAsync(CancellationToken).

public readonly record struct PlatformInfo

Inheritance Object → ValueType → PlatformInfo
Implements IEquatable<PlatformInfo>
Attributes NullableContextAttribute, NullableAttribute, IsReadOnlyAttribute

Properties​

Platform​

Which platform the app is running on.

public PlatformKind Platform { get; init; }

Property Value​

PlatformKind

OsVersion​

The OS version string.

public string OsVersion { get; init; }

Property Value​

String

AppVersion​

The app's version string.

public string AppVersion { get; init; }

Property Value​

String

IsDebug​

Whether this is a debug build.

public bool IsDebug { get; init; }

Property Value​

Boolean

Constructors​

PlatformInfo(PlatformKind, String, String, Boolean)​

Static information about the running platform, served by IMobileBridge.GetPlatformInfoAsync(CancellationToken).

public PlatformInfo(PlatformKind Platform, string OsVersion, string AppVersion, bool IsDebug)

Parameters​

Platform PlatformKind
Which platform the app is running on.

OsVersion String
The OS version string.

AppVersion String
The app's version string.

IsDebug Boolean
Whether this is a debug build.