Essential Kit
Loading...
Searching...
No Matches
RuntimePlatformConstant

Object represents an immutable, read-only object that combines a string value with a platform.

Static Public Member Functions

static RuntimePlatformConstant iOS (string value)
 Returns a new instance of RuntimePlatformConstant, containing a string value functional only on iOS platform.
 
static RuntimePlatformConstant tvOS (string value)
 Returns a new instance of RuntimePlatformConstant, containing a string value functional only on tvOS platform.
 
static RuntimePlatformConstant Android (string value)
 Returns a new instance of RuntimePlatformConstant, containing a string value functional only on Android platform.
 
static RuntimePlatformConstant Current (string value)
 Returns a new instance of RuntimePlatformConstant, containing a string value associated with active platform.
 

Properties

RuntimePlatform Platform [get]
 Gets the runtime platform associated with string value.
 
string Value [get]
 Gets the string value.
 

Member Function Documentation

◆ iOS()

static RuntimePlatformConstant iOS ( string value)
static
Returns
The instance of RuntimePlatformConstant.
Parameters
valueThe string value associated with iOS platform.

◆ tvOS()

static RuntimePlatformConstant tvOS ( string value)
static
Returns
The instance of RuntimePlatformConstant.
Parameters
valueThe string value associated with tvOS platform.

◆ Android()

static RuntimePlatformConstant Android ( string value)
static
Returns
The instance of RuntimePlatformConstant.
Parameters
valueThe string value associated with Android platform.

◆ Current()

static RuntimePlatformConstant Current ( string value)
static
Returns
The instance of RuntimePlatformConstant.
Parameters
valueThe string value associated with active platform.

Property Documentation

◆ Platform

RuntimePlatform Platform
get

The enum value indicates the platform to which string value belongs.

◆ Value

string Value
get

The string value.