BridgeController is an abstract class containing a list of registered IBridgeHandler instances. This class should be extended for different environments.
More...
BridgeController is an abstract class containing a list of registered IBridgeHandler instances. This class should be extended for different environments.
Definition at line 17 of file BridgeController.cs.
HybridBridge.BridgeController.BridgeController |
( |
string |
customProtocol, |
|
|
IEnumerable< IBridgeHandler > |
collection |
|
) |
| |
|
protected |
HybridBridge.BridgeController.BridgeController |
( |
string |
customProtocol | ) |
|
|
protected |
Creates a new instance of BridgeController class
- Parameters
-
customProtocol | The protocol to use for communication with web browser, or to use default |
Definition at line 48 of file BridgeController.cs.
HybridBridge.BridgeController.BridgeController |
( |
IEnumerable< IBridgeHandler > |
collection | ) |
|
|
protected |
HybridBridge.BridgeController.BridgeController |
( |
| ) |
|
|
protected |
void HybridBridge.BridgeController.AddRange |
( |
IEnumerable< IBridgeHandler > |
collection | ) |
|
virtual void HybridBridge.BridgeController.CallJavascriptAction |
( |
string |
methodName, |
|
|
params object[] |
arguments |
|
) |
| |
|
virtual |
Calls a Javascript method with the provided arguments and return the result
- Parameters
-
methodName | The name of the method to call |
arguments | The arguments to send to the method |
Definition at line 308 of file BridgeController.cs.
virtual object HybridBridge.BridgeController.CallJavascriptFunction |
( |
string |
methodName, |
|
|
params object[] |
arguments |
|
) |
| |
|
virtual |
Calls a Javascript method with the provided arguments and return the result
- Parameters
-
methodName | The name of the method to call |
arguments | The arguments to send to the method |
- Returns
- Result of the code execution
Definition at line 296 of file BridgeController.cs.
void HybridBridge.BridgeController.Clear |
( |
| ) |
|
virtual bool HybridBridge.BridgeController.Contains |
( |
IBridgeHandler |
item | ) |
|
|
virtual |
Goes through the list of registered IBridgeHandler objects and checks for existing of the passed instance
- Parameters
-
- Returns
- if the passed instance was in the list, otherwise
Definition at line 125 of file BridgeController.cs.
virtual void HybridBridge.BridgeController.CopyTo |
( |
IBridgeHandler[] |
array, |
|
|
int |
arrayIndex |
|
) |
| |
|
virtual |
Copies the list of registered IBridgeHandler object to an array
- Parameters
-
array | Array to copy the list to |
arrayIndex | Index of first element in the destination array |
Definition at line 135 of file BridgeController.cs.
virtual object HybridBridge.BridgeController.ExecuteJavascript |
( |
string |
jsCode | ) |
|
|
virtual |
Executes a Javascript string and returns the result
- Parameters
-
jsCode | The code to execute |
- Returns
- Result of the code execution
Definition at line 258 of file BridgeController.cs.
virtual void HybridBridge.BridgeController.ExecuteJavascript |
( |
string |
jsCode, |
|
|
Action< object > |
result |
|
) |
| |
|
virtual |
virtual void HybridBridge.BridgeController.FireJavascript |
( |
string |
jsCode | ) |
|
|
virtual |
Fires a Javascript string
- Parameters
-
jsCode | The code to execute |
Definition at line 285 of file BridgeController.cs.
virtual IEnumerator<IBridgeHandler> HybridBridge.BridgeController.GetEnumerator |
( |
| ) |
|
|
virtual |
Returns the IEnumerator object for this class
- Returns
- IEnumerator object for this class
Definition at line 86 of file BridgeController.cs.
virtual bool HybridBridge.BridgeController.HandleRequestUrl |
( |
string |
url | ) |
|
|
protectedvirtual |
Handles a request and leaves the result behind
- Parameters
-
- Returns
- if the Url handled, otherwise
Definition at line 360 of file BridgeController.cs.
virtual bool HybridBridge.BridgeController.HandleRequestUrl |
( |
string |
url, |
|
|
out bool |
hasResult, |
|
|
out object |
result |
|
) |
| |
|
protectedvirtual |
Handles a request
- Parameters
-
url | The Url to handle |
hasResult | An outgoing boolean parameter indicating if the handling of the passed Url generated a result |
result | An outgoing object containing the result of the handling process |
- Returns
- if the Url handled, otherwise
Definition at line 374 of file BridgeController.cs.
virtual int HybridBridge.BridgeController.IndexOf |
( |
IBridgeHandler |
item | ) |
|
|
virtual |
Returns the index of the passed IBridgeHandler instance in the list
- Parameters
-
- Returns
- Index of the passed instance, otherwise -1
Definition at line 171 of file BridgeController.cs.
virtual void HybridBridge.BridgeController.Initialize |
( |
| ) |
|
|
protectedvirtual |
virtual void HybridBridge.BridgeController.Insert |
( |
int |
index, |
|
|
IBridgeHandler |
item |
|
) |
| |
|
virtual |
Inserts and registers the passed instance of IBridgeHandler
- Parameters
-
index | Index to which the new instance should be added |
item | The instance of IBridgeHandler |
- Exceptions
-
RedundantHandlerException | An instance of the same type in already in list |
Definition at line 182 of file BridgeController.cs.
virtual string HybridBridge.BridgeController.NormalizeCustomProtocol |
( |
string |
customProtocol = null | ) |
|
|
protectedvirtual |
virtual void HybridBridge.BridgeController.PushJavascript |
( |
| ) |
|
|
protectedvirtual |
Removes the passed instance of IBridgeHandler from the list of the registered handlers
- Parameters
-
- Returns
- if desired instance removed from the list, otherwise
Definition at line 147 of file BridgeController.cs.
virtual void HybridBridge.BridgeController.RemoveAt |
( |
int |
index | ) |
|
|
virtual |
virtual int HybridBridge.BridgeController.Count => Handlers.Count |
virtual bool HybridBridge.BridgeController.IsReadOnly => false |
virtual TimeSpan HybridBridge.BridgeController.JavascriptTimeout |
|
getset |
Sets or gets the time that we should wait for the result of any Javascript invocation, this value doesn't applies to callbacks
Definition at line 71 of file BridgeController.cs.
string HybridBridge.BridgeController.Protocol = TimeSpan.FromSeconds(3) |
|
getprotected set |
The protocol to use for communication with web browser
Definition at line 77 of file BridgeController.cs.
The documentation for this class was generated from the following file: