Flutter Engine
The Flutter Engine
shell
platform
android
io
flutter
embedding
android
ExclusiveAppComponent.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.android;
6
7
import
androidx.annotation.NonNull;
8
9
/**
10
* An Android App Component exclusively attached to a {@link
11
* io.flutter.embedding.engine.FlutterEngine}.
12
*
13
* <p>An exclusive App Component's {@link #detachFromFlutterEngine} is invoked when another App
14
* Component is becoming attached to the {@link io.flutter.embedding.engine.FlutterEngine}.
15
*
16
* <p>The term "App Component" refer to the 4 component types: Activity, Service, Broadcast
17
* Receiver, and Content Provider, as defined in
18
* https://developer.android.com/guide/components/fundamentals.
19
*
20
* @param <T> The App Component behind this exclusive App Component.
21
*/
22
public
interface
ExclusiveAppComponent
<
T
> {
23
/**
24
* Called when another App Component is about to become attached to the {@link
25
* io.flutter.embedding.engine.FlutterEngine} this App Component is currently attached to.
26
*
27
* <p>This App Component's connections to the {@link io.flutter.embedding.engine.FlutterEngine}
28
* are still valid at the moment of this call.
29
*/
30
void
detachFromFlutterEngine
();
31
32
/**
33
* Retrieve the App Component behind this exclusive App Component.
34
*
35
* @return The app component.
36
*/
37
@NonNull
38
T
getAppComponent
();
39
}
io.flutter.embedding.android.ExclusiveAppComponent
Definition:
ExclusiveAppComponent.java:22
io.flutter.embedding.android.ExclusiveAppComponent.getAppComponent
T getAppComponent()
io.flutter.embedding.android.ExclusiveAppComponent.detachFromFlutterEngine
void detachFromFlutterEngine()
T
#define T
Definition:
precompiler.cc:65
Generated on Sun Jun 23 2024 21:55:09 for Flutter Engine by
1.9.4