Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface IInputFilter

interface IInputFilter
Extends com.amazon.apmf.IStandard The IInputFilter interface provides a mechanism to create a text input filter for the ITextInputController.

Methods

filter()

string filter(string originalText, string textToInsert, u32 start, u32 end)
Filters the text based on the implementation of the filter.

Parameters

originalText
string — Required Original text before the filter is applied.
textToInsert
string — Required New text to be inserted into the original text.
start
u32 — Required Start index for the filter.
end
u32 — Required End index for the filter.

Returns

string Modified string after applying the filter.
Last modified on October 29, 2026