public class LocalizationChannel extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
LocalizationChannel.LocalizationMessageHandler
Handler that receives platform messages sent from Flutter to Android through a given
PlatformChannel. |
| Modifier and Type | Field and Description |
|---|---|
MethodChannel |
channel |
MethodChannel.MethodCallHandler |
handler |
| Constructor and Description |
|---|
LocalizationChannel(DartExecutor dartExecutor) |
| Modifier and Type | Method and Description |
|---|---|
void |
sendLocales(List<Locale> locales)
Send the given
locales to Dart. |
void |
setLocalizationMessageHandler(LocalizationChannel.LocalizationMessageHandler localizationMessageHandler)
Sets the
LocalizationChannel.LocalizationMessageHandler which receives all events and requests that are
parsed from the underlying platform channel. |
@NonNull public final MethodChannel channel
@NonNull public final MethodChannel.MethodCallHandler handler
public LocalizationChannel(@NonNull
DartExecutor dartExecutor)
public void setLocalizationMessageHandler(@Nullable
LocalizationChannel.LocalizationMessageHandler localizationMessageHandler)
LocalizationChannel.LocalizationMessageHandler which receives all events and requests that are
parsed from the underlying platform channel.