-
- All Implemented Interfaces:
-
io.flutter.plugin.common.EventChannel.StreamHandler
public class ConnectivityBroadcastReceiver extends BroadcastReceiver implements EventChannel.StreamHandler
The ConnectivityBroadcastReceiver receives the connectivity updates and send them to the UIThread through an EventChannel.EventSink
Use to set up the receiver.
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringCONNECTIVITY_ACTION
-
Constructor Summary
Constructors Constructor Description ConnectivityBroadcastReceiver(Context context, Connectivity connectivity)
-
Method Summary
Modifier and Type Method Description voidonListen(Object arguments, EventChannel.EventSink events)voidonCancel(Object arguments)voidonReceive(Context context, Intent intent)-
Methods inherited from class android.content.BroadcastReceiver
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, getSentFromPackage, getSentFromUid, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, onReceive, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras -
Methods inherited from class io.flutter.plugin.common.EventChannel.StreamHandler
onCancel, onListen -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ConnectivityBroadcastReceiver
ConnectivityBroadcastReceiver(Context context, Connectivity connectivity)
-
-
-
-