public class DeferredComponentChannel extends Object
This channel is able to handle multiple simultaneous installation requests
Constructor and Description |
---|
DeferredComponentChannel(DartExecutor dartExecutor)
Constructs a
DeferredComponentChannel that connects Android to the Dart code running in
dartExecutor . |
Modifier and Type | Method and Description |
---|---|
void |
completeInstallError(String moduleName,
String errorMessage)
Finishes the `installDeferredComponent` method channel call for the specified moduleName with
an error/failure.
|
void |
completeInstallSuccess(String moduleName)
Finishes the `installDeferredComponent` method channel call for the specified moduleName with a
success.
|
void |
setDeferredComponentManager(io.flutter.embedding.engine.deferredcomponents.DeferredComponentManager deferredComponentManager)
Sets the DeferredComponentManager to exectue method channel calls with.
|
public DeferredComponentChannel(@NonNull DartExecutor dartExecutor)
DeferredComponentChannel
that connects Android to the Dart code running in
dartExecutor
.
The given dartExecutor
is permitted to be idle or executing code.
See DartExecutor
.
public void setDeferredComponentManager(@Nullable io.flutter.embedding.engine.deferredcomponents.DeferredComponentManager deferredComponentManager)
deferredComponentManager
- the DeferredComponentManager to use.public void completeInstallSuccess(String moduleName)
moduleName
- The name of the android deferred component module install request to
complete.public void completeInstallError(String moduleName, String errorMessage)
moduleName
- The name of the android deferred component module install request to
complete.errorMessage
- The error message to display to complete the future with.