Flutter Engine
The Flutter Engine
Classes | Public Member Functions | Public Attributes | Package Attributes | List of all members
io.flutter.embedding.engine.systemchannels.PlatformChannel Class Reference

Classes

class  AppSwitcherDescription
 
enum  Brightness
 
enum  ClipboardContentFormat
 
enum  DeviceOrientation
 
enum  HapticFeedbackType
 
interface  PlatformMessageHandler
 
enum  SoundType
 
class  SystemChromeStyle
 
enum  SystemUiMode
 
enum  SystemUiOverlay
 

Public Member Functions

 PlatformChannel (@NonNull DartExecutor dartExecutor)
 
void setPlatformMessageHandler (@Nullable PlatformMessageHandler platformMessageHandler)
 
void systemChromeChanged (boolean overlaysAreVisible)
 

Public Attributes

final MethodChannel channel
 

Package Attributes

final MethodChannel.MethodCallHandler parsingMethodCallHandler
 

Detailed Description

System channel that receives requests for host platform behavior, e.g., haptic and sound effects, system chrome configurations, and clipboard interaction.

Definition at line 27 of file PlatformChannel.java.

Constructor & Destructor Documentation

◆ PlatformChannel()

io.flutter.embedding.engine.systemchannels.PlatformChannel.PlatformChannel ( @NonNull DartExecutor  dartExecutor)
inline

Constructs a PlatformChannel that connects Android to the Dart code running in
dartExecutor
.

The given dartExecutor is permitted to be idle or executing code.

See DartExecutor.

Definition at line 213 of file PlatformChannel.java.

213 {
214 channel = new MethodChannel(dartExecutor, "flutter/platform", JSONMethodCodec.INSTANCE);
216 }
final MethodChannel.MethodCallHandler parsingMethodCallHandler
void setMethodCallHandler(final @Nullable MethodCallHandler handler)

Member Function Documentation

◆ setPlatformMessageHandler()

void io.flutter.embedding.engine.systemchannels.PlatformChannel.setPlatformMessageHandler ( @Nullable PlatformMessageHandler  platformMessageHandler)
inline

Sets the PlatformMessageHandler which receives all events and requests that are parsed from the underlying platform channel.

Definition at line 222 of file PlatformChannel.java.

222 {
223 this.platformMessageHandler = platformMessageHandler;
224 }

◆ systemChromeChanged()

void io.flutter.embedding.engine.systemchannels.PlatformChannel.systemChromeChanged ( boolean  overlaysAreVisible)
inline

Informs Flutter of a change in the SystemUI overlays.

Definition at line 227 of file PlatformChannel.java.

227 {
228 Log.v(TAG, "Sending 'systemUIChange' message.");
229 channel.invokeMethod("SystemChrome.systemUIChange", Arrays.asList(overlaysAreVisible));
230 }
void invokeMethod(@NonNull String method, @Nullable Object arguments)
void Log(const char *format,...) SK_PRINTF_LIKE(1
Definition: TestRunner.cpp:137

Member Data Documentation

◆ channel

final MethodChannel io.flutter.embedding.engine.systemchannels.PlatformChannel.channel

Definition at line 30 of file PlatformChannel.java.

◆ parsingMethodCallHandler

final MethodChannel.MethodCallHandler io.flutter.embedding.engine.systemchannels.PlatformChannel.parsingMethodCallHandler
package

Definition at line 34 of file PlatformChannel.java.


The documentation for this class was generated from the following file: