C# Class Unity.Platform.Windows.WindowsSystem

Inheritance: Unity.Core.System.AbstractSystem
Afficher le fichier Open project: Appverse/appverse-mobile Class Usage Examples

Méthodes publiques

Méthode Description
CopyToClipboard ( string text ) : bool
DismissApplication ( ) : void

Dismisses the current application.

DismissSplashScreen ( ) : bool

Dismisses the splash screen.

GetCPUInfo ( ) : Unity.Core.System.CPUInfo

Returns current CPU information.

GetDisplayInfo ( int displayNumber ) : Unity.Core.System.DisplayInfo

Returns the information for the given display number. Display array starts at 1 (primary display).

GetDisplays ( ) : int

Returns the number of screens connected to the device.

GetInputButtons ( ) : InputButton[]
GetInputGestures ( ) : InputGesture[]
GetInputMethodCurrent ( ) : InputCapability

GetInputMethods ( ) : InputCapability[]

Returns input methods supported by the device.

GetLocaleCurrent ( ) : Locale

Returns the current Culture Information (current locale).

GetLocaleSupported ( ) : Locale[]

Returns the supported locales. List ordered by the "LanguageISOCode-CountryISOCode".

GetMemoryAvailable ( MemoryUse use ) : long

Returns memory available for the given use (application or storage).

GetMemoryAvailable ( MemoryUse use, MemoryType type ) : long

Returns memory available for the given use (application or storage) and type. In this case, only one type is available, so method is returning memory status depending on use.

GetMemoryAvailableTypes ( ) : MemoryType[]

Returns windows memory types. In this case, only Main type is available.

GetMemoryStatus ( ) : Unity.Core.System.MemoryStatus

Returns TOTAL memory status information.

GetMemoryStatus ( MemoryType type ) : Unity.Core.System.MemoryStatus

Returns memory info for the given type. In this case, only one type is available, so method is returning total memory status.

GetOSHardwareInfo ( ) : Unity.Core.System.HardwareInfo

Returns current Hardware information.

GetOSInfo ( ) : Unity.Core.System.OSInfo

Returns current Operating System information.

GetOrientationSupported ( int displayNumber ) : DisplayOrientation[]

All displays will accept the two available orientations: portrait and landscape.

GetPowerInfo ( ) : Unity.Core.System.PowerInfo

Returns current battery information.

GetUnityContext ( ) : Unity.Core.System.UnityContext
LaunchApplication ( Unity application, string query ) : void
ShowSplashScreen ( ) : bool

Shows the splash screen.

Private Methods

Méthode Description
GetApplicationMemoryStatus ( ) : Unity.Core.System.MemoryStatus

Returns memory information for the physical memory.

GetDiskMemoryStatus ( ) : Unity.Core.System.MemoryStatus

Returns space infroamtion for the local disk.

GetDisplayInfoList ( ) : Unity.Core.System.DisplayInfo[]

Provides information of screens connected to the device. Display 1 is the primary.

Method Details

CopyToClipboard() public méthode

public CopyToClipboard ( string text ) : bool
text string
Résultat bool

DismissApplication() public méthode

Dismisses the current application.
public DismissApplication ( ) : void
Résultat void

DismissSplashScreen() public méthode

Dismisses the splash screen.
public DismissSplashScreen ( ) : bool
Résultat bool

GetCPUInfo() public méthode

Returns current CPU information.
public GetCPUInfo ( ) : Unity.Core.System.CPUInfo
Résultat Unity.Core.System.CPUInfo

GetDisplayInfo() public méthode

Returns the information for the given display number. Display array starts at 1 (primary display).
public GetDisplayInfo ( int displayNumber ) : Unity.Core.System.DisplayInfo
displayNumber int
Résultat Unity.Core.System.DisplayInfo

GetDisplays() public méthode

Returns the number of screens connected to the device.
public GetDisplays ( ) : int
Résultat int

GetInputButtons() public méthode

public GetInputButtons ( ) : InputButton[]
Résultat InputButton[]

GetInputGestures() public méthode

public GetInputGestures ( ) : InputGesture[]
Résultat InputGesture[]

GetInputMethodCurrent() public méthode

public GetInputMethodCurrent ( ) : InputCapability
Résultat InputCapability

GetInputMethods() public méthode

Returns input methods supported by the device.
public GetInputMethods ( ) : InputCapability[]
Résultat InputCapability[]

GetLocaleCurrent() public méthode

Returns the current Culture Information (current locale).
public GetLocaleCurrent ( ) : Locale
Résultat Locale

GetLocaleSupported() public méthode

Returns the supported locales. List ordered by the "LanguageISOCode-CountryISOCode".
public GetLocaleSupported ( ) : Locale[]
Résultat Locale[]

GetMemoryAvailable() public méthode

Returns memory available for the given use (application or storage).
public GetMemoryAvailable ( MemoryUse use ) : long
use MemoryUse Memory use.
Résultat long

GetMemoryAvailable() public méthode

Returns memory available for the given use (application or storage) and type. In this case, only one type is available, so method is returning memory status depending on use.
public GetMemoryAvailable ( MemoryUse use, MemoryType type ) : long
use MemoryUse Memory use.
type MemoryType Memory type.
Résultat long

GetMemoryAvailableTypes() public méthode

Returns windows memory types. In this case, only Main type is available.
public GetMemoryAvailableTypes ( ) : MemoryType[]
Résultat MemoryType[]

GetMemoryStatus() public méthode

Returns TOTAL memory status information.
public GetMemoryStatus ( ) : Unity.Core.System.MemoryStatus
Résultat Unity.Core.System.MemoryStatus

GetMemoryStatus() public méthode

Returns memory info for the given type. In this case, only one type is available, so method is returning total memory status.
public GetMemoryStatus ( MemoryType type ) : Unity.Core.System.MemoryStatus
type MemoryType Memory type.
Résultat Unity.Core.System.MemoryStatus

GetOSHardwareInfo() public méthode

Returns current Hardware information.
public GetOSHardwareInfo ( ) : Unity.Core.System.HardwareInfo
Résultat Unity.Core.System.HardwareInfo

GetOSInfo() public méthode

Returns current Operating System information.
public GetOSInfo ( ) : Unity.Core.System.OSInfo
Résultat Unity.Core.System.OSInfo

GetOrientationSupported() public méthode

All displays will accept the two available orientations: portrait and landscape.
public GetOrientationSupported ( int displayNumber ) : DisplayOrientation[]
displayNumber int Display Number
Résultat DisplayOrientation[]

GetPowerInfo() public méthode

Returns current battery information.
public GetPowerInfo ( ) : Unity.Core.System.PowerInfo
Résultat Unity.Core.System.PowerInfo

GetUnityContext() public méthode

public GetUnityContext ( ) : Unity.Core.System.UnityContext
Résultat Unity.Core.System.UnityContext

LaunchApplication() public méthode

public LaunchApplication ( Unity application, string query ) : void
application Unity
query string
Résultat void

ShowSplashScreen() public méthode

Shows the splash screen.
public ShowSplashScreen ( ) : bool
Résultat bool