Kanda Foundation 0.2.0
Loading...
Searching...
No Matches
PlatformInfoService Class Reference

More...

+ Inheritance diagram for PlatformInfoService:

Public Member Functions

 PlatformInfoService (IPlatformSettings platformSettings, IApplication application)
 
PlatformContextFlags GetContext ()
 Gets the platform context. These are flags, as the context may represent multiple roles at once, for example Editor and Player.
 
PlatformDevice GetDevice ()
 Gets the current platform device.
 
string GetVersion ()
 Gets the application version string.
 

Properties

bool IsPlayer [get]
 Returns true if the platform context represents a player.
 
bool IsServer [get]
 Returns true if the platform context represents a server.
 
bool IsEditor [get]
 Returns true if the platform context represents the Unity Editor.
 
bool IsXrDevice [get]
 Returns true if the platform device represents an XR-compatible device.
 
- Properties inherited from IPlatformInfoService

Detailed Description

Member Function Documentation

◆ GetContext()

PlatformContextFlags GetContext ( )
inline

Gets the platform context. These are flags, as the context may represent multiple roles at once, for example Editor and Player.

Implements IPlatformInfoService.

◆ GetDevice()

PlatformDevice GetDevice ( )
inline

Gets the current platform device.

Implements IPlatformInfoService.

◆ GetVersion()

string GetVersion ( )
inline

Gets the application version string.

Implements IPlatformInfoService.

Property Documentation

◆ IsEditor

bool IsEditor
get

Returns true if the platform context represents the Unity Editor.

Implements IPlatformInfoService.

◆ IsPlayer

bool IsPlayer
get

Returns true if the platform context represents a player.

Implements IPlatformInfoService.

◆ IsServer

bool IsServer
get

Returns true if the platform context represents a server.

Implements IPlatformInfoService.

◆ IsXrDevice

bool IsXrDevice
get

Returns true if the platform device represents an XR-compatible device.

Implements IPlatformInfoService.


The documentation for this class was generated from the following file: