Package io.flutter.embedding.engine.plugins.broadcastreceiver

# Interface BroadcastReceiverAware

public interface BroadcastReceiverAware
A `FlutterPlugin` that wants to know when it is running within a `BroadcastReceiver`.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `onAttachedToBroadcastReceiver(BroadcastReceiverPluginBinding binding)`
  Callback triggered when a `BroadcastReceiverAware` `FlutterPlugin` is associated with a `BroadcastReceiver`.
  `void`
  `onDetachedFromBroadcastReceiver()`
  Callback triggered when a `BroadcastReceiverAware` `FlutterPlugin` is detached from a `BroadcastReceiver`.

- ## Method Details

  - ### onAttachedToBroadcastReceiver

    void onAttachedToBroadcastReceiver(@NonNull BroadcastReceiverPluginBinding binding)
    Callback triggered when a `BroadcastReceiverAware` `FlutterPlugin` is associated with a `BroadcastReceiver`.

  - ### onDetachedFromBroadcastReceiver

    void onDetachedFromBroadcastReceiver()
    Callback triggered when a `BroadcastReceiverAware` `FlutterPlugin` is detached from a `BroadcastReceiver`.