C# Class Unity.Platform.IPhone.IPhoneSystem

Inheritance: Unity.Core.System.AbstractSystem
Show file Open project: Appverse/appverse-mobile Class Usage Examples

Public Methods

Method 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

Method Description
GetDeviceOrientation ( ) : DisplayOrientation

Get Current Device Orientation.

GetLocaleFromLocaleIdentifier ( string localeIdentifier ) : System.Locale

Method Details

CopyToClipboard() public method

public CopyToClipboard ( string text ) : bool
text string
return bool

DismissApplication() public method

Dismisses or finishes the application programmatically.
public DismissApplication ( ) : void
return void

DismissSplashScreen() public method

Dismisses the splash screen.
public DismissSplashScreen ( ) : bool
return bool

GetCPUInfo() public method

Gets Processor Information
public GetCPUInfo ( ) : Unity.Core.System.CPUInfo
return Unity.Core.System.CPUInfo

GetConfigFileBinaryData() public method

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

GetDisplayInfo() public method

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

GetDisplays() public method

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

GetInputButtons() public method

public GetInputButtons ( ) : InputButton[]
return InputButton[]

GetInputGestures() public method

public GetInputGestures ( ) : InputGesture[]
return InputGesture[]

GetInputMethodCurrent() public method

public GetInputMethodCurrent ( ) : InputCapability
return InputCapability

GetInputMethods() public method

public GetInputMethods ( ) : InputCapability[]
return InputCapability[]

GetLocaleCurrent() public method

Get Current Device Locale.
public GetLocaleCurrent ( ) : System.Locale
return System.Locale

GetLocaleSupported() public method

public GetLocaleSupported ( ) : System.Locale[]
return System.Locale[]

GetMemoryAvailable() public method

public GetMemoryAvailable ( MemoryUse use ) : long
use MemoryUse
return long

GetMemoryAvailable() public method

public GetMemoryAvailable ( MemoryUse use, MemoryType type ) : long
use MemoryUse
type MemoryType
return long

GetMemoryAvailableTypes() public method

public GetMemoryAvailableTypes ( ) : MemoryType[]
return MemoryType[]

GetMemoryStatus() public method

public GetMemoryStatus ( ) : Unity.Core.System.MemoryStatus
return Unity.Core.System.MemoryStatus

GetMemoryStatus() public method

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

GetOSHardwareInfo() public method

public GetOSHardwareInfo ( ) : Unity.Core.System.HardwareInfo
return Unity.Core.System.HardwareInfo

GetOSInfo() public method

Get Device Operating System Information.
public GetOSInfo ( ) : Unity.Core.System.OSInfo
return Unity.Core.System.OSInfo

GetOrientationSupported() public method

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

GetPowerInfo() public method

Gets Power Information (level & status)
public GetPowerInfo ( ) : Unity.Core.System.PowerInfo
return Unity.Core.System.PowerInfo

GetUnityContext() public method

public GetUnityContext ( ) : Unity.Core.System.UnityContext
return Unity.Core.System.UnityContext

LaunchApplication() public method

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.
return void

ShowSplashScreen() public method

Shows the splash screen.
public ShowSplashScreen ( ) : bool
return bool