Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
BroadcastReceiverAware.java
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5package io.flutter.embedding.engine.plugins.broadcastreceiver;
6
7import androidx.annotation.NonNull;
8
9/**
10 * A {@link io.flutter.embedding.engine.plugins.FlutterPlugin} that wants to know when it is running
11 * within a {@link android.content.BroadcastReceiver}.
12 */
13public interface BroadcastReceiverAware {
14 /**
15 * Callback triggered when a {@code BroadcastReceiverAware} {@link
16 * io.flutter.embedding.engine.plugins.FlutterPlugin} is associated with a {@link
17 * android.content.BroadcastReceiver}.
18 */
20
21 /**
22 * Callback triggered when a {@code BroadcastReceiverAware} {@link
23 * io.flutter.embedding.engine.plugins.FlutterPlugin} is detached from a {@link
24 * android.content.BroadcastReceiver}.
25 */
27}
void onAttachedToBroadcastReceiver(@NonNull BroadcastReceiverPluginBinding binding)