Class LocalizationChannel
java.lang.Object
io.flutter.embedding.engine.systemchannels.LocalizationChannel
Sends the platform's locales to Dart.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Handler that receives platform messages sent from Flutter to Android through a givenPlatformChannel
. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
sendLocales
(List<Locale> locales) Send the givenlocales
to Dart.void
setLocalizationMessageHandler
(LocalizationChannel.LocalizationMessageHandler localizationMessageHandler) Sets theLocalizationChannel.LocalizationMessageHandler
which receives all events and requests that are parsed from the underlying platform channel.
-
Field Details
-
channel
-
handler
-
-
Constructor Details
-
LocalizationChannel
-
-
Method Details
-
setLocalizationMessageHandler
public void setLocalizationMessageHandler(@Nullable LocalizationChannel.LocalizationMessageHandler localizationMessageHandler) Sets theLocalizationChannel.LocalizationMessageHandler
which receives all events and requests that are parsed from the underlying platform channel. -
sendLocales
Send the givenlocales
to Dart.
-