addListener


Purpose

Adds a connection type listener to the list of listeners.

Every new listener will be called right after its registration with the current type.

Signature

addListener( callback )

Returns

This method does not return anything.

Parameter

Name Description Type Use
callback When the type of the network connection changes, a function is called. The function has one parameter: type. function required

Related topics

networkStatus
Legal notice | Copyright © 2015 and Confidential to Pegasystems Inc. All rights reserved. | Feedback
Advanced...