NetworkCallbackHandle

Handle for managing the lifecycle of a network connectivity callback.

This class encapsulates the callback registration state and provides a clean way to unregister network monitoring when it's no longer needed. Proper cleanup is essential to prevent unnecessary system resource usage.

Parameters

connectivityManager

The system connectivity manager that registered the callback

wrappedCallback

The actual network callback that was registered

Constructors

Link copied to clipboard
constructor(connectivityManager: ConnectivityManager, wrappedCallback: ConnectivityManager.NetworkCallback)

Functions

Link copied to clipboard