ConnectivityReceiver

Interface definition for a callback to be invoked when connectivity changes. Not public api.

Functions

Link copied to clipboard
Link copied to clipboard
open fun activate()
Activates the connectivity receiver.
Link copied to clipboard
Add a listener to be notified
Link copied to clipboard
Link copied to clipboard
open fun deactivate()
Deactivates the connectivity receiver.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getSentFromUid(): Int
Link copied to clipboard
Link copied to clipboard
Get a single instance of ConnectivityReceiver.
Link copied to clipboard
open fun isConnected(): Boolean
Get current connectivity state
Link copied to clipboard
Link copied to clipboard
open fun onReceive(@NonNull context: Context, intent: Intent)
Link copied to clipboard
open fun peekService(p: Context, p1: Intent): IBinder
Link copied to clipboard
Remove a listener
Link copied to clipboard
open fun setConnected(connected: Boolean)
Overwrites system connectivity state.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun setResult(p: Int, p1: String, p2: Bundle)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard