Flutter Engine
The Flutter Engine
|
Public Member Functions | |
boolean | contains (@NonNull String engineGroupId) |
FlutterEngineGroup | get (@NonNull String engineGroupId) |
void | put (@NonNull String engineGroupId, @Nullable FlutterEngineGroup engineGroup) |
void | remove (@NonNull String engineGroupId) |
void | clear () |
Static Public Member Functions | |
static FlutterEngineGroupCache | getInstance () |
Package Functions | |
FlutterEngineGroupCache () | |
Static singleton cache that holds io.flutter.embedding.engine.FlutterEngineGroup
instances identified by String
s.
The ID of a given io.flutter.embedding.engine.FlutterEngineGroup
can be whatever String
is desired.
io.flutter.embedding.android.FlutterActivity
and io.flutter.embedding.android.FlutterFragment
use the FlutterEngineGroupCache
singleton internally when instructed to use a cached io.flutter.embedding.engine.FlutterEngineGroup
based on a given ID. See io.flutter.embedding.android.FlutterActivity.NewEngineInGroupIntentBuilder
and io.flutter.embedding.android.FlutterFragment#withNewEngineInGroup(String)
for related APIs.
Definition at line 27 of file FlutterEngineGroupCache.java.
|
inlinepackage |
Definition at line 50 of file FlutterEngineGroupCache.java.
|
inline |
Removes all io.flutter.embedding.engine.FlutterEngineGroup
's that are currently in the cache.
Definition at line 97 of file FlutterEngineGroupCache.java.
|
inline |
Returns true
if a io.flutter.embedding.engine.FlutterEngineGroup
in this cache is associated with the given engineGroupId
.
Definition at line 56 of file FlutterEngineGroupCache.java.
|
inline |
Returns the io.flutter.embedding.engine.FlutterEngineGroup
in this cache that is associated with the given engineGroupId
, or null
is no such io.flutter.embedding.engine.FlutterEngineGroup
exists.
Definition at line 66 of file FlutterEngineGroupCache.java.
|
inlinestatic |
Returns the static singleton instance of FlutterEngineGroupCache
.
Creates a new instance if one does not yet exist.
Definition at line 36 of file FlutterEngineGroupCache.java.
|
inline |
Places the given io.flutter.embedding.engine.FlutterEngineGroup
in this cache and associates it with the given engineGroupId
.
If a io.flutter.embedding.engine.FlutterEngineGroup
is null, that io.flutter.embedding.engine.FlutterEngineGroup
is removed from this cache.
Definition at line 77 of file FlutterEngineGroupCache.java.
|
inline |
Removes any io.flutter.embedding.engine.FlutterEngineGroup
that is currently in the cache that is identified by the given engineGroupId
.
Definition at line 89 of file FlutterEngineGroupCache.java.