Class LocalizationChannel
- java.lang.Object
-
- io.flutter.embedding.engine.systemchannels.LocalizationChannel
-
public class LocalizationChannel extends Object
Sends the platform's locales to Dart.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
LocalizationChannel.LocalizationMessageHandler
Handler that receives platform messages sent from Flutter to Android through a givenPlatformChannel
.
-
Field Summary
Fields Modifier and Type Field Description MethodChannel
channel
MethodChannel.MethodCallHandler
handler
-
Constructor Summary
Constructors Constructor Description LocalizationChannel(DartExecutor dartExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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 Detail
-
channel
@NonNull public final MethodChannel channel
-
handler
@NonNull public final MethodChannel.MethodCallHandler handler
-
-
Constructor Detail
-
LocalizationChannel
public LocalizationChannel(@NonNull DartExecutor dartExecutor)
-
-
Method Detail
-
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.
-
-