Flutter Engine
The Flutter Engine
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
5package io.flutter.embedding.android;
6
7import 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 */
22public 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 */
31
32 /**
33 * Retrieve the App Component behind this exclusive App Component.
34 *
35 * @return The app component.
36 */
37 @NonNull
39}
#define T
Definition: precompiler.cc:65