External: Mobile('networkChanged')

thaliMobileNative~Mobile('networkChanged')

Methods

(static) registerToNative(callback)

Any time the state of the network changes (meaning any of the values in the module:thaliMobileNative~networkChanged object are altered) any callbacks registered with this method will be called. Note that calls to this callback can start at any time once the system has been initialized so it might not be possible to grab all the instances of this event before the application code is fully running. This is considered acceptable because if there are problems with network state when calling methods on this object an error wil be returned. So the caller should really only care about this event once they have called methods on this object.

The callbacks MUST NOT be sent more frequently than every 100 ms. If multiple network changes occur during that period then only the last update before the waiting period is up MUST be sent. This means that we do not guarantee that all changes in the network's status will necessarily result in a networkChanged callback.

Parameters:
Name Type Description
callback module:thaliMobileNative~networkChangedCallback
Source: