C# Class Unity.Platform.IPhone.IPhoneSystem

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 or finishes the application programmatically.

DismissSplashScreen ( ) : bool

Dismisses the splash screen.

GetCPUInfo ( ) : Unity.Core.System.CPUInfo

Gets Processor Information

GetConfigFileBinaryData ( ) : byte[]

Method overrided, to use NSData to get stream from file resource inside application.

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

Get Display Information for the given display number.

GetDisplays ( ) : int

For IPhone, only 1 display is possible. For IPad, Screens[].lenght is requested (exception thrown when iphone).

GetInputButtons ( ) : InputButton[]
GetInputGestures ( ) : InputGesture[]
GetInputMethodCurrent ( ) : InputCapability
GetInputMethods ( ) : InputCapability[]
GetLocaleCurrent ( ) : System.Locale

Get Current Device Locale.

GetLocaleSupported ( ) : System.Locale[]

GetMemoryAvailable ( MemoryUse use ) : long
GetMemoryAvailable ( MemoryUse use, MemoryType type ) : long
GetMemoryAvailableTypes ( ) : MemoryType[]
GetMemoryStatus ( ) : Unity.Core.System.MemoryStatus
GetMemoryStatus ( MemoryType type ) : Unity.Core.System.MemoryStatus
GetOSHardwareInfo ( ) : Unity.Core.System.HardwareInfo

GetOSInfo ( ) : Unity.Core.System.OSInfo

Get Device Operating System Information.

GetOrientationSupported ( int displayNumber ) : DisplayOrientation[]

Returns supported orientations for given display number.

GetPowerInfo ( ) : Unity.Core.System.PowerInfo

Gets Power Information (level & status)

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

Launches the given application with the needed launch data paramaters as a query string ().

ShowSplashScreen ( ) : bool

Shows the splash screen.

Private Methods

Méthode Description
GetDeviceOrientation ( ) : DisplayOrientation

Get Current Device Orientation.

GetLocaleFromLocaleIdentifier ( string localeIdentifier ) : System.Locale

Method Details

CopyToClipboard() public méthode

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

DismissApplication() public méthode

Dismisses or finishes the application programmatically.
public DismissApplication ( ) : void
Résultat void

DismissSplashScreen() public méthode

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

GetCPUInfo() public méthode

Gets Processor Information
public GetCPUInfo ( ) : Unity.Core.System.CPUInfo
Résultat Unity.Core.System.CPUInfo

GetConfigFileBinaryData() public méthode

Method overrided, to use NSData to get stream from file resource inside application.
public GetConfigFileBinaryData ( ) : byte[]
Résultat byte[]

GetDisplayInfo() public méthode

Get Display Information for the given display number.
public GetDisplayInfo ( int displayNumber ) : Unity.Core.System.DisplayInfo
displayNumber int /// A ///
Résultat Unity.Core.System.DisplayInfo

GetDisplays() public méthode

For IPhone, only 1 display is possible. For IPad, Screens[].lenght is requested (exception thrown when iphone).
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

public GetInputMethods ( ) : InputCapability[]
Résultat InputCapability[]

GetLocaleCurrent() public méthode

Get Current Device Locale.
public GetLocaleCurrent ( ) : System.Locale
Résultat System.Locale

GetLocaleSupported() public méthode

public GetLocaleSupported ( ) : System.Locale[]
Résultat System.Locale[]

GetMemoryAvailable() public méthode

public GetMemoryAvailable ( MemoryUse use ) : long
use MemoryUse
Résultat long

GetMemoryAvailable() public méthode

public GetMemoryAvailable ( MemoryUse use, MemoryType type ) : long
use MemoryUse
type MemoryType
Résultat long

GetMemoryAvailableTypes() public méthode

public GetMemoryAvailableTypes ( ) : MemoryType[]
Résultat MemoryType[]

GetMemoryStatus() public méthode

public GetMemoryStatus ( ) : Unity.Core.System.MemoryStatus
Résultat Unity.Core.System.MemoryStatus

GetMemoryStatus() public méthode

public GetMemoryStatus ( MemoryType type ) : Unity.Core.System.MemoryStatus
type MemoryType
Résultat Unity.Core.System.MemoryStatus

GetOSHardwareInfo() public méthode

public GetOSHardwareInfo ( ) : Unity.Core.System.HardwareInfo
Résultat Unity.Core.System.HardwareInfo

GetOSInfo() public méthode

Get Device Operating System Information.
public GetOSInfo ( ) : Unity.Core.System.OSInfo
Résultat Unity.Core.System.OSInfo

GetOrientationSupported() public méthode

Returns supported orientations for given display number.
public GetOrientationSupported ( int displayNumber ) : DisplayOrientation[]
displayNumber int /// A ///
Résultat DisplayOrientation[]

GetPowerInfo() public méthode

Gets Power Information (level & status)
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

Launches the given application with the needed launch data paramaters as a query string ().
public LaunchApplication ( App application, string query ) : void
application App Application to be launched.
query string Query string in the format: "relative_url?param1=value1¶m2=value2". Set it to null for not sending extra launch data.
Résultat void

ShowSplashScreen() public méthode

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