Flutter Engine
The Flutter Engine
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Properties
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Related Functions
:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
y
Enumerator
b
c
d
e
f
g
h
k
l
m
n
p
r
s
t
u
v
w
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
shell
platform
android
io
flutter
embedding
engine
plugins
broadcastreceiver
BroadcastReceiverControlSurface.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
5
package
io.flutter.embedding.engine.plugins.broadcastreceiver;
6
7
import
android
.content.BroadcastReceiver;
8
import
androidx.annotation.NonNull;
9
import
androidx.lifecycle.Lifecycle;
10
11
/**
12
* Control surface through which a {@link BroadcastReceiver} attaches to a {@link
13
* io.flutter.embedding.engine.FlutterEngine}.
14
*
15
* <p>A {@link BroadcastReceiver} that contains a {@link io.flutter.embedding.engine.FlutterEngine}
16
* should coordinate itself with the {@link io.flutter.embedding.engine.FlutterEngine}'s {@code
17
* BroadcastReceiverControlSurface}.
18
*/
19
public
interface
BroadcastReceiverControlSurface
{
20
/**
21
* Call this method from the {@link BroadcastReceiver} that is running the {@link
22
* io.flutter.embedding.engine.FlutterEngine} that is associated with this {@code
23
* BroadcastReceiverControlSurface}.
24
*
25
* <p>Once a {@link BroadcastReceiver} is created, and its associated {@link
26
* io.flutter.embedding.engine.FlutterEngine} is executing Dart code, the {@link
27
* BroadcastReceiver} should invoke this method. At that point the {@link
28
* io.flutter.embedding.engine.FlutterEngine} is considered "attached" to the {@link
29
* BroadcastReceiver} and all {@link BroadcastReceiverAware} plugins are given access to the
30
* {@link BroadcastReceiver}.
31
*/
32
void
attachToBroadcastReceiver
(
33
@NonNull BroadcastReceiver broadcastReceiver, @NonNull Lifecycle lifecycle);
34
35
/**
36
* Call this method from the {@link BroadcastReceiver} that is attached to this {@code
37
* BroadcastReceiverControlSurfaces}'s {@link io.flutter.embedding.engine.FlutterEngine} when the
38
* {@link BroadcastReceiver} is about to be destroyed.
39
*
40
* <p>This method gives each {@link BroadcastReceiverAware} plugin an opportunity to clean up its
41
* references before the {@link BroadcastReceiver is destroyed}.
42
*/
43
void
detachFromBroadcastReceiver
();
44
}
io.flutter.embedding.engine.plugins.broadcastreceiver.BroadcastReceiverControlSurface
Definition:
BroadcastReceiverControlSurface.java:19
io.flutter.embedding.engine.plugins.broadcastreceiver.BroadcastReceiverControlSurface.detachFromBroadcastReceiver
void detachFromBroadcastReceiver()
io.flutter.embedding.engine.plugins.broadcastreceiver.BroadcastReceiverControlSurface.attachToBroadcastReceiver
void attachToBroadcastReceiver( @NonNull BroadcastReceiver broadcastReceiver, @NonNull Lifecycle lifecycle)
android
Definition:
BitmapRegionDecoder.cpp:14
Generated on Sun Jun 23 2024 21:55:09 for Flutter Engine by
1.9.4