C# Class WPCordovaClassLib.Cordova.NativeExecution

Implements logic to execute native command and return result back. All commands are executed asynchronous.
Show file Open project: ChristianWeyer/tUdUs Class Usage Examples

Public Methods

Method Description
AutoLoadCommand ( string commandService ) : void
IsRunningOnEmulator ( ) : bool

Returns where application is running on emulator

NativeExecution ( WebBrowser &browser ) : System

Creates new instance of a NativeExecution class.

ProcessCommand ( CordovaCommandCall commandCallParams ) : void

Executes command and returns result back.

ResetAllCommands ( ) : void

Private Methods

Method Description
InvokeScriptCallback ( ScriptCallback script ) : void

Executes client java script

OnCommandResult ( string callbackId, PluginResult result ) : void

Handles command execution result.

Method Details

AutoLoadCommand() public method

public AutoLoadCommand ( string commandService ) : void
commandService string
return void

IsRunningOnEmulator() public static method

Returns where application is running on emulator
public static IsRunningOnEmulator ( ) : bool
return bool

NativeExecution() public method

Creates new instance of a NativeExecution class.
public NativeExecution ( WebBrowser &browser ) : System
browser WebBrowser Reference to web part where application is hosted
return System

ProcessCommand() public method

Executes command and returns result back.
public ProcessCommand ( CordovaCommandCall commandCallParams ) : void
commandCallParams CordovaCommandCall Command to execute
return void

ResetAllCommands() public method

public ResetAllCommands ( ) : void
return void