KeyboardLanguagePlatform class abstract
The interface every platform implementation of input_language
implements. Apps use KeyboardLanguage; this class is for implementers and
tests.
- Inheritance
-
- Object
- PlatformInterface
- KeyboardLanguagePlatform
- Implementers
Constructors
- KeyboardLanguagePlatform()
- Constructs a platform implementation.
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.
-
getCapabilities(
) → Future< KeyboardLanguageCapabilities> - Describes what this platform supports.
-
getCurrent(
) → Future< InputLanguage?> -
Reads the active keyboard language, or
nullwhen unknown. -
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. -
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.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ KeyboardLanguagePlatform
-
The implementation in use; defaults to MethodChannelKeyboardLanguage.
getter/setter pair