Class PlatformChannel
java.lang.Object
io.flutter.embedding.engine.systemchannels.PlatformChannel
System channel that receives requests for host platform behavior, e.g., haptic and sound effects,
system chrome configurations, and clipboard interaction.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
The color and label of an application that appears in Android's app switcher, AKA recents screen.static enum
static enum
Data formats of clipboard content.static enum
The possible desired orientations of a Flutter application.static enum
The types of haptic feedback that the Android OS can generate on behalf of an application.static interface
Handler that receives platform messages sent from Flutter to Android through a givenPlatformChannel
.static enum
Types of sounds the Android OS can play on behalf of an application.static class
The color and brightness of system chrome, e.g., status bar and system navigation bar.static enum
The set of Android system fullscreen modes as perceived by the Flutter application.static enum
The set of Android system UI overlays as perceived by the Flutter application. -
Field Summary
-
Constructor Summary
ConstructorDescriptionPlatformChannel
(DartExecutor dartExecutor) Constructs aPlatformChannel
that connects Android to the Dart code running indartExecutor
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
setPlatformMessageHandler
(PlatformChannel.PlatformMessageHandler platformMessageHandler) Sets thePlatformChannel.PlatformMessageHandler
which receives all events and requests that are parsed from the underlying platform channel.void
systemChromeChanged
(boolean overlaysAreVisible) Informs Flutter of a change in the SystemUI overlays.
-
Field Details
-
channel
-
-
Constructor Details
-
PlatformChannel
Constructs aPlatformChannel
that connects Android to the Dart code running indartExecutor
.The given
dartExecutor
is permitted to be idle or executing code.See
DartExecutor
.
-
-
Method Details
-
setPlatformMessageHandler
public void setPlatformMessageHandler(@Nullable PlatformChannel.PlatformMessageHandler platformMessageHandler) Sets thePlatformChannel.PlatformMessageHandler
which receives all events and requests that are parsed from the underlying platform channel. -
systemChromeChanged
public void systemChromeChanged(boolean overlaysAreVisible) Informs Flutter of a change in the SystemUI overlays.
-