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
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
ApplicationVersion
Application version number.
string ApplicationVersion { get; }
Property Value
DataPath
Path to the game data directory.
string DataPath { get; }
Property Value
DeviceModel
Model of the device running the application.
string DeviceModel { get; }
Property Value
DeviceOs
Name of the OS for the executing device
string DeviceOs { get; }
Property Value
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
DeviceUniqueIdentifier
Unique device identifier. Uses UnityEngine.SystemInfo.deviceUniqueIdentifier.
string DeviceUniqueIdentifier { get; }
Property Value
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
IsDevelopmentBuild
Is the 'Development Build' is set as a build option.
In Editor always returns true.
bool IsDevelopmentBuild { get; }
Property Value
IsEditor
Is the application running inside the Unity editor?
bool IsEditor { get; }
Property Value
PersistentDataPath
Path to a persistent data directory.
string PersistentDataPath { get; }
Property Value
RuntimePlatformName
Name of the target runtime platform.
string RuntimePlatformName { get; }
Property Value
StreamingAssetsPath
Path to the StreamingAssets directory.
string StreamingAssetsPath { get; }
Property Value
TargetRuntimePlatform
Target runtime platform.
TargetRuntimePlatform TargetRuntimePlatform { get; }
Property Value
TemporaryCachePath
Path to the cache directory.
string TemporaryCachePath { get; }
Property Value
UnityVersion
Version of the Unity runtime.
string UnityVersion { get; }
Property Value
UserAgent
User agent name of the target runtime platform for Homa services.
string UserAgent { get; }