MethodChannelKeyboardLanguage class
KeyboardLanguagePlatform backed by the native iOS, Android, macOS and Windows implementations over platform channels.
- Inheritance
-
- Object
- PlatformInterface
- KeyboardLanguagePlatform
- MethodChannelKeyboardLanguage
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getAvailable(
) → Future< List< InputLanguage> > -
Lists the keyboards / input languages the user has enabled.
override
-
getCapabilities(
) → Future< KeyboardLanguageCapabilities> -
Describes what this platform supports.
override
-
getCurrent(
) → Future< InputLanguage?> -
Reads the active keyboard language, or
nullwhen unknown.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setLanguage(
String languageTag) → Future< bool> -
Selects the installed keyboard matching
languageTag. Returnsfalsewhen none matches; throws UnsupportedError where impossible.override -
toString(
) → String -
A string representation of this object.
inherited
-
watch(
{required Duration pollInterval}) → Stream< InputLanguage?> -
Streams the keyboard language, starting with the current value where the
platform can determine it.
pollIntervalis used by platforms that have no change notification.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- eventChannel → const EventChannel
- The event channel that streams input-language changes.
- methodChannel → const MethodChannel
- The method channel shared with the native code.