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

Classes

class  ConfigurationQueue
 
class  MessageBuilder
 
enum  PlatformBrightness
 

Public Member Functions

 SettingsChannel (@NonNull DartExecutor dartExecutor)
 
MessageBuilder startMessage ()
 

Static Public Member Functions

static boolean hasNonlinearTextScalingSupport ()
 
static DisplayMetrics getPastDisplayMetrics (int configId)
 

Public Attributes

final BasicMessageChannel< Object > channel
 

Static Public Attributes

static final String CHANNEL_NAME = "flutter/settings"
 

Detailed Description

Definition at line 20 of file SettingsChannel.java.

Constructor & Destructor Documentation

◆ SettingsChannel()

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

Definition at line 36 of file SettingsChannel.java.

36 {
37 this.channel = new BasicMessageChannel<>(dartExecutor, CHANNEL_NAME, JSONMessageCodec.INSTANCE);
38 }

Member Function Documentation

◆ getPastDisplayMetrics()

static DisplayMetrics io.flutter.embedding.engine.systemchannels.SettingsChannel.getPastDisplayMetrics ( int  configId)
inlinestatic

Definition at line 46 of file SettingsChannel.java.

46 {
48 final ConfigurationQueue.SentConfiguration configuration =
49 CONFIGURATION_QUEUE.getConfiguration(configId);
50 return configuration == null ? null : configuration.displayMetrics;
51 }

◆ hasNonlinearTextScalingSupport()

static boolean io.flutter.embedding.engine.systemchannels.SettingsChannel.hasNonlinearTextScalingSupport ( )
inlinestatic

Definition at line 41 of file SettingsChannel.java.

41 {
42 return Build.VERSION.SDK_INT >= API_LEVELS.API_34;
43 }

◆ startMessage()

MessageBuilder io.flutter.embedding.engine.systemchannels.SettingsChannel.startMessage ( )
inline

Definition at line 54 of file SettingsChannel.java.

54 {
55 return new MessageBuilder(channel);
56 }

Member Data Documentation

◆ channel

final BasicMessageChannel<Object> io.flutter.embedding.engine.systemchannels.SettingsChannel.channel

Definition at line 34 of file SettingsChannel.java.

◆ CHANNEL_NAME

final String io.flutter.embedding.engine.systemchannels.SettingsChannel.CHANNEL_NAME = "flutter/settings"
static

Definition at line 23 of file SettingsChannel.java.


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