Flutter Engine
The Flutter Engine
|
Public Member Functions | |
LocalizationPlugin ( @NonNull Context context, @NonNull LocalizationChannel localizationChannel) | |
Locale | resolveNativeLocale (@Nullable List< Locale > supportedLocales) |
void | sendLocalesToFlutter (@NonNull Configuration config) |
Static Public Member Functions | |
static Locale | localeFromString (@NonNull String localeString) |
Package Attributes | |
final LocalizationChannel.LocalizationMessageHandler | localizationMessageHandler |
Android implementation of the localization plugin.
Definition at line 23 of file LocalizationPlugin.java.
|
inline |
Definition at line 59 of file LocalizationPlugin.java.
|
inlinestatic |
Computes the Locale
from the provided String
with format language[-script][-region][-...], where script is an alphabet string of length 4, and region is either an alphabet string of length 2 or a digit string of length 3.
Definition at line 185 of file LocalizationPlugin.java.
|
inline |
Computes the Locale
in supportedLocales that best matches the user's preferred locales.
FlutterEngine must be non-null when this method is invoked.
Definition at line 74 of file LocalizationPlugin.java.
|
inline |
Send the current Locale
configuration to Flutter.
FlutterEngine must be non-null when this method is invoked.
Definition at line 163 of file LocalizationPlugin.java.
|
package |
Definition at line 32 of file LocalizationPlugin.java.