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
OsVersion
The OS version string.
public string OsVersion { get; init; }
Property Value
AppVersion
The app's version string.
public string AppVersion { get; init; }
Property Value
IsDebug
Whether this is a debug build.
public bool IsDebug { get; init; }
Property Value
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.