Skip to main content

Crate inset_services

Crate inset_services 

Source
Expand description

Flutter counterpart: packages/flutter/lib/src/services.

Only the application exit of ServicesBinding, the hardware keyboard, haptic feedback, the mouse cursor, the mouse tracking annotation, state restoration, the application switcher description, the system overlay style, TextInput / TextInputConnection / TextInputClient / TextSelectionDelegate, text layout metric statics, the clipboard, text input formatters, SelectionChangedCause, autofill (AutofillHints / AutofillClient / AutofillScope), keyboard-inserted content, spell check, live text, process text, UndoManager / UndoManagerClient, SystemContextMenuController, and re-exports of the text-input value types are here. Platform channels, the raw keyboard, and the rest of system chrome wait.

Structs§

AnyAutofillClient
Erased AutofillClient: one identity and a static vtable.
AnyTextInputClient
Erased TextInputClient: one identity and a static vtable.
AnyTextSelectionDelegate
Erased TextSelectionDelegate: one identity and a static vtable.
AnyUndoManagerClient
Erased UndoManagerClient: one identity and a static vtable.
AutofillConfiguration
A collection of autofill related information that represents an AutofillClient.
AutofillHints
A collection of commonly used autofill hint strings on different platforms.
CharacterBoundary
A TextBoundary subclass for retrieving the range of the grapheme the given position is in.
Clipboard
Utility methods for interacting with the system’s clipboard.
ClipboardData
Data stored on the system clipboard.
DefaultProcessTextService
The service used by default for the text processing feature.
DefaultSpellCheckService
The service used by default to fetch spell check results for text input.
DeferringMouseCursor
The cursor behind MouseCursor.defer. Every instance is equal.
DocumentBoundary
A text boundary that uses the entire document as logical boundary.
FilteringTextInputFormatter
A TextInputFormatter that prevents the insertion of characters matching (or not matching) a particular pattern, by replacing the characters with the given replacement_string.
HapticFeedback
Allows access to the haptic feedback interface on the device.
HardwareKeyboard
Manages key events from hardware keyboards.
KeyDownEvent
An event indicating that the user has pressed a key down on the keyboard.
KeyEventManager
A singleton class that processes key messages from the platform and dispatches converted messages accordingly.
KeyRepeatEvent
An event indicating that the user has been holding a key on the keyboard and causing repeated events.
KeyUpEvent
An event indicating that the user has released a key on the keyboard.
KeyboardInsertedContent
A class representing rich content (such as a PNG image) inserted via the system input method.
LengthLimitingTextInputFormatter
A TextInputFormatter that prevents the insertion of more characters than allowed.
LiveText
Utility methods for interacting with the system’s Live Text.
LogicalKeyboardKey
A type with constants that describe the keys that are returned from RawKeyEvent.logicalKey.
MouseCursorManager
Maintains the state of mouse cursors and manages how cursors are searched for.
MouseTrackerAnnotation
The annotation object used to annotate regions that are interested in mouse movements.
NoopMouseCursor
The cursor behind MouseCursor.uncontrolled. Every instance is equal.
ParagraphBoundary
A text boundary that uses paragraphs as logical boundaries.
PhysicalKeyboardKey
A type with constants that describe the keys that are returned from RawKeyEvent.physicalKey.
ProcessTextAction
A data structure describing text processing actions.
RawFloatingCursorPoint
The current state and position of the floating cursor.
RestorationBucket
A RestorationBucket holds pieces of the restoration data that a part of the application needs to restore its state.
RestorationManager
Manages the restoration data in the framework and synchronizes it with the host.
RestorationUpdate
What the host answers when the framework asks for the restoration data it stored.
SelectionRect
Represents a selection rect for a character and it’s position in the text.
ServicesBinding
Hands the host’s lifecycle messages to the scheduler and the layers above, answers the host’s requests to exit the application, and asks the host to exit it.
SpellCheckResults
A data structure grouping together the SuggestionSpans and related text of results returned by a spell checker.
SuggestionSpan
A data structure representing a range of misspelled text and the suggested replacements for this range.
SystemChrome
Controls specific aspects of the operating system’s graphical interface and how it interacts with the application.
SystemContextMenuController
Allows access to the system context menu.
SystemMouseCursor
A mouse cursor that is natively supported on the platform that the application is running on.
SystemMouseCursors
A collection of system MouseCursors.
TextEditingValue
The current text, selection, and composing state for editing a run of text.
TextInput
An low-level interface to the system’s text input control.
TextInputConfiguration
Controls the visual appearance of the text input control.
TextInputConnection
An interface for interacting with a text input control.
TextInputFormatterRef
A shared TextInputFormatter.
TextInputStyle
Text styling information for the current input client.
TextInputType
The type of information for which to optimize the text input control.
TextLayoutMetrics
Static classifiers from Flutter’s TextLayoutMetrics.
TextSelection
A range of text that represents a selection.
UndoManager
A low-level interface to the system’s undo manager.

Enums§

FilterPattern
A pattern FilteringTextInputFormatter matches against incoming text.
FloatingCursorDragState
The state of a “floating cursor” drag on an iOS soft keyboard.
IOSSystemContextMenuItemData
Describes a context menu button that will be rendered in the system context menu.
KeyEvent
Defines the interface for keyboard key events.
KeyboardLockMode
Represents a lock mode of a keyboard, such as KeyboardLockMode::CapsLock.
MaxLengthEnforcement
Mechanisms for enforcing maximum length limits.
RestorationData
One value in the restoration data, of the kinds StandardMessageCodec can carry.
SelectionChangedCause
Indicates what triggered the change in selected text (including changes to the cursor location).
SmartDashesType
Indicates how to handle the intelligent replacement of dashes in text input.
SmartQuotesType
Indicates how to handle the intelligent replacement of quotes in text input.
SystemUiOverlay
Specifies a set of mutually exclusive system UI overlays.
TextCapitalization
Configures how the platform keyboard will select an uppercase or lowercase keyboard.
TextInputAction
An action the user has requested the text input control to perform.
UndoDirection
The direction in which an undo action should be performed, whether undo or redo.

Traits§

AutofillClient
An object that represents an autofillable input field in the autofill workflow.
AutofillScope
An ordered group within which AutofillClients are logically connected.
AutofillScopeMixin
A partial implementation of AutofillScope.
KeyboardKey
A base class for all keyboard key types.
MouseCursor
An interface for mouse cursor definitions.
MouseCursorSession
Manages the duration that a pointing device should display a specific mouse cursor.
ProcessTextService
Determines how to interact with the text processing feature.
ServicesBindingOverrides
What the binding above this one overrides; kept erased.
ServicesBindingOverridesObject
The object side of Flutter’s WidgetsBinding override of ServicesBinding.handleRequestAppExit, which asks the widget layer’s observers. Implement it on the binding above and register Rc::new(handle) with ServicesBinding::set_overrides; Handle<T> is then ServicesBindingOverrides.
SpellCheckService
Determines how spell check results are received for text input.
TextBoundary
An interface for retrieving the logical text boundary (as opposed to the visual boundary) at a given code unit offset in a document.
TextInputClient
An interface to receive information from TextInput.
TextInputFormatter
A TextInputFormatter can be optionally injected into an EditableText to provide as-you-type validation and formatting of the text being edited.
TextSelectionDelegate
An interface for manipulating the selection, to be used by the implementor of the toolbar widget.
UndoManagerClient
An interface to receive events from a native UndoManager.

Type Aliases§

KeyEventCallback
The signature for HardwareKeyboard::add_handler, a callback to decide whether the entire framework handles a key event.
MouseCursorRef
A shared reference to an immutable MouseCursor (a Dart object reference).
RestorationMap
Flutter’s Map<Object?, Object?> of restoration data: insertion-ordered, keyed by value.
TextInputFormatFunction
Function signature expected for creating custom TextInputFormatter shorthands via TextInputFormatterRef::with_function.
UntilPredicate
Signature for a predicate that takes an offset into a UTF-16 string, and a boolean that indicates the search direction.