C# Класс Unity.Platform.Windows.WindowsSystem

Наследование: Unity.Core.System.AbstractSystem
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

CopyToClipboard() публичный Метод

public CopyToClipboard ( string text ) : bool
text string
Результат bool

DismissApplication() публичный Метод

Dismisses the current application.
public DismissApplication ( ) : void
Результат void

DismissSplashScreen() публичный Метод

Dismisses the splash screen.
public DismissSplashScreen ( ) : bool
Результат bool

GetCPUInfo() публичный Метод

Returns current CPU information.
public GetCPUInfo ( ) : Unity.Core.System.CPUInfo
Результат Unity.Core.System.CPUInfo

GetDisplayInfo() публичный Метод

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
Результат Unity.Core.System.DisplayInfo

GetDisplays() публичный Метод

Returns the number of screens connected to the device.
public GetDisplays ( ) : int
Результат int

GetInputButtons() публичный Метод

public GetInputButtons ( ) : InputButton[]
Результат InputButton[]

GetInputGestures() публичный Метод

public GetInputGestures ( ) : InputGesture[]
Результат InputGesture[]

GetInputMethodCurrent() публичный Метод

public GetInputMethodCurrent ( ) : InputCapability
Результат InputCapability

GetInputMethods() публичный Метод

Returns input methods supported by the device.
public GetInputMethods ( ) : InputCapability[]
Результат InputCapability[]

GetLocaleCurrent() публичный Метод

Returns the current Culture Information (current locale).
public GetLocaleCurrent ( ) : Locale
Результат Locale

GetLocaleSupported() публичный Метод

Returns the supported locales. List ordered by the "LanguageISOCode-CountryISOCode".
public GetLocaleSupported ( ) : Locale[]
Результат Locale[]

GetMemoryAvailable() публичный Метод

Returns memory available for the given use (application or storage).
public GetMemoryAvailable ( MemoryUse use ) : long
use MemoryUse Memory use.
Результат long

GetMemoryAvailable() публичный Метод

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.
Результат long

GetMemoryAvailableTypes() публичный Метод

Returns windows memory types. In this case, only Main type is available.
public GetMemoryAvailableTypes ( ) : MemoryType[]
Результат MemoryType[]

GetMemoryStatus() публичный Метод

Returns TOTAL memory status information.
public GetMemoryStatus ( ) : Unity.Core.System.MemoryStatus
Результат Unity.Core.System.MemoryStatus

GetMemoryStatus() публичный Метод

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.
Результат Unity.Core.System.MemoryStatus

GetOSHardwareInfo() публичный Метод

Returns current Hardware information.
public GetOSHardwareInfo ( ) : Unity.Core.System.HardwareInfo
Результат Unity.Core.System.HardwareInfo

GetOSInfo() публичный Метод

Returns current Operating System information.
public GetOSInfo ( ) : Unity.Core.System.OSInfo
Результат Unity.Core.System.OSInfo

GetOrientationSupported() публичный Метод

All displays will accept the two available orientations: portrait and landscape.
public GetOrientationSupported ( int displayNumber ) : DisplayOrientation[]
displayNumber int Display Number
Результат DisplayOrientation[]

GetPowerInfo() публичный Метод

Returns current battery information.
public GetPowerInfo ( ) : Unity.Core.System.PowerInfo
Результат Unity.Core.System.PowerInfo

GetUnityContext() публичный Метод

public GetUnityContext ( ) : Unity.Core.System.UnityContext
Результат Unity.Core.System.UnityContext

LaunchApplication() публичный Метод

public LaunchApplication ( Unity application, string query ) : void
application Unity
query string
Результат void

ShowSplashScreen() публичный Метод

Shows the splash screen.
public ShowSplashScreen ( ) : bool
Результат bool