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
Nested ClassesModifier and TypeClassDescriptionstatic classThe color and label of an application that appears in Android's app switcher, AKA recents screen.static enumstatic enumData formats of clipboard content.static enumThe possible desired orientations of a Flutter application.static enumThe types of haptic feedback that the Android OS can generate on behalf of an application.static interfaceHandler that receives platform messages sent from Flutter to Android through a givenPlatformChannel.static enumTypes of sounds the Android OS can play on behalf of an application.static classThe color and brightness of system chrome, e.g., status bar and system navigation bar.static enumThe set of Android system fullscreen modes as perceived by the Flutter application.static enumThe set of Android system UI overlays as perceived by the Flutter application. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPlatformChannel(DartExecutor dartExecutor) Constructs aPlatformChannelthat connects Android to the Dart code running indartExecutor. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetPlatformMessageHandler(PlatformChannel.PlatformMessageHandler platformMessageHandler) Sets thePlatformChannel.PlatformMessageHandlerwhich receives all events and requests that are parsed from the underlying platform channel.voidsystemChromeChanged(boolean overlaysAreVisible) Informs Flutter of a change in the SystemUI overlays.
-
Field Details
-
channel
-
-
Constructor Details
-
PlatformChannel
Constructs aPlatformChannelthat connects Android to the Dart code running indartExecutor.The given
dartExecutoris permitted to be idle or executing code.See
DartExecutor.
-
-
Method Details
-
setPlatformMessageHandler
public void setPlatformMessageHandler(@Nullable PlatformChannel.PlatformMessageHandler platformMessageHandler) Sets thePlatformChannel.PlatformMessageHandlerwhich 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.
-