Method Summary
|
getNetwork
(
|
Returns the network with the specified name. |
| getNetworkInterfaces ( ) → Array.<ToiNetwork.ToiInterfaceInfo> |
Returns information about the available network interfaces. |
Inherited Methods
|
addEventListener
(
|
This method registers an event listener for a specific event. Multiple listeners can be added for the same event. Events are broadcast to all registered listeners. |
|
removeEventListener
(
|
This method removes an event listener for a specific event. |
Methods
This method registers an event listener for a specific event. Multiple listeners can be added for the same event. Events are broadcast to all registered listeners.
Inherited From:
Parameters:
-
Name Type Description typenumber The event type of the event to subscribe to.
listenerToiEventListener The JavaScript function that will receive events.
Throws:
-
ToiInvalidArgumentException Raised if the event type is not supported by this object or if the listener is not a valid JavaScript function. This exception is also raised if the application calls addEventListener with the same combination of type and listener twice.
Returns the network with the specified name.
Parameters:
-
Name Type Description networkNamestring The name of the network. The following named networks are currently supported: ToiNetService.BOOT_NETWORK
Throws:
-
ToiInvalidArgumentException Raised if there is no network with the specified name.
Returns:
-
Type: ToiNetwork
The ToiNetwork address.
Returns information about the available network interfaces.
Returns:
-
Type: Array.<ToiNetwork.ToiInterfaceInfo>
Information about the available network interfaces.
This method removes an event listener for a specific event.
Inherited From:
Parameters:
-
Name Type Description typenumber The event type of the event to remove the listener from.
listenerToiEventListener The JavaScript function that was previously added as an event listener.
Throws:
-
ToiInvalidArgumentException Raised if the event type is not supported by this object or if the listener is not a valid JavaScript function. This exception is also raised if the listener has not previously been added.