Table of Contents

Interface IApplicationInfo

Namespace
Homa.Sdk.Foundation
Assembly
Homa.Sdk.Foundation.dll

Provides thread-safe access to runtime-static properties whose values do not change during runtime. It abstracts Unity/System properties which are readonly but can only be accessed form the main thread.

Individual implementors can alter the specific fields per platform, so do not expect values to be the same on all platforms.

public interface IApplicationInfo

Properties

ApplicationBuildNumber

Build number of the current version.

string ApplicationBuildNumber { get; }

Property Value

string

ApplicationIdentifier

Application identifier at runtime. On Apple platforms this is the 'bundleIdentifier' saved in the Info.plist file, on Android it's the 'package' from the AndroidManifest.xml

string ApplicationIdentifier { get; }

Property Value

string

ApplicationVersion

Application version number.

string ApplicationVersion { get; }

Property Value

string

DataPath

Path to the game data directory.

string DataPath { get; }

Property Value

string

DeviceModel

Model of the device running the application.

string DeviceModel { get; }

Property Value

string

DeviceOs

Name of the OS for the executing device

string DeviceOs { get; }

Property Value

string

DeviceOsVersion

OS version string, containing only the numeric value. It should not be used for comparison, as some platform APIs do not guarantee they can be compared or sorted. In Unity Editor returns UnityVersion. Returns "0" when version is not available. Fallbacks to DeviceOs for other platforms than mobile or editor.

string DeviceOsVersion { get; }

Property Value

string

DeviceUniqueIdentifier

Unique device identifier. Uses UnityEngine.SystemInfo.deviceUniqueIdentifier.

string DeviceUniqueIdentifier { get; }

Property Value

string

Remarks

Note that this identifier is not guaranteed to be in guid format for all platforms.

IsBatchMode

Is Unity is launched with the -batchmode flag from the command line.

bool IsBatchMode { get; }

Property Value

bool

IsDevelopmentBuild

Is the 'Development Build' is set as a build option. In Editor always returns true.

bool IsDevelopmentBuild { get; }

Property Value

bool

IsEditor

Is the application running inside the Unity editor?

bool IsEditor { get; }

Property Value

bool

PersistentDataPath

Path to a persistent data directory.

string PersistentDataPath { get; }

Property Value

string

RuntimePlatformName

Name of the target runtime platform.

string RuntimePlatformName { get; }

Property Value

string

StreamingAssetsPath

Path to the StreamingAssets directory.

string StreamingAssetsPath { get; }

Property Value

string

TargetRuntimePlatform

Target runtime platform.

TargetRuntimePlatform TargetRuntimePlatform { get; }

Property Value

TargetRuntimePlatform

TemporaryCachePath

Path to the cache directory.

string TemporaryCachePath { get; }

Property Value

string

UnityVersion

Version of the Unity runtime.

string UnityVersion { get; }

Property Value

string

UserAgent

User agent name of the target runtime platform for Homa services.

string UserAgent { get; }

Property Value

string