public
class
InputMethodService.InputMethodSessionImpl
extends AbstractInputMethodService.AbstractInputMethodSessionImpl
Concrete implementation of
AbstractInputMethodService.AbstractInputMethodSessionImpl
that provides
all of the standard behavior for an input method session.
Summary
Inherited methods |
From class
android.inputmethodservice.AbstractInputMethodService.AbstractInputMethodSessionImpl
|
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait(long timeoutMillis, int nanos)
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
|
final
void
|
wait(long timeoutMillis)
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
|
final
void
|
wait()
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted.
|
|
From interface
android.view.inputmethod.InputMethodSession
abstract
void
|
appPrivateCommand(String action, Bundle data)
Process a private command sent from the application to the input method.
|
abstract
void
|
dispatchGenericMotionEvent(int seq, MotionEvent event, InputMethodSession.EventCallback callback)
This method is called when there is a generic motion event.
|
abstract
void
|
dispatchKeyEvent(int seq, KeyEvent event, InputMethodSession.EventCallback callback)
This method is called when a key is pressed.
|
abstract
void
|
dispatchTrackballEvent(int seq, MotionEvent event, InputMethodSession.EventCallback callback)
This method is called when there is a track ball event.
|
abstract
void
|
displayCompletions(CompletionInfo[] completions)
Called by a text editor that performs auto completion, to tell the
input method about the completions it has available.
|
abstract
void
|
finishInput()
This method is called when the application would like to stop
receiving text input.
|
abstract
void
|
toggleSoftInput(int showFlags, int hideFlags)
This method was deprecated
in API level 31.
Starting in Build.VERSION_CODES.S the system no longer invokes
this method, instead it explicitly shows or hides the IME. An InputMethodService
wishing to toggle its own visibility should instead invoke InputMethodService.requestShowSelf(int) or InputMethodService.requestHideSelf
|
abstract
void
|
updateCursor(Rect newCursor)
This method is called when cursor location of the target input field
has changed within its window.
|
abstract
void
|
updateCursorAnchorInfo(CursorAnchorInfo cursorAnchorInfo)
This method is called when the cursor and/or the character position relevant to text input
is changed on the screen.
|
abstract
void
|
updateExtractedText(int token, ExtractedText text)
Called by a text editor to report its new extracted text when its
contents change.
|
abstract
void
|
updateSelection(int oldSelStart, int oldSelEnd, int newSelStart, int newSelEnd, int candidatesStart, int candidatesEnd)
This method is called when the selection or cursor in the current
target input field has changed.
|
abstract
void
|
viewClicked(boolean focusChanged)
This method is called when the user tapped a text view.
|
|
Public constructors
public InputMethodSessionImpl ()
Public methods
public void finishInput ()
updateSelection
public void updateSelection (int oldSelStart,
int oldSelEnd,
int newSelStart,
int newSelEnd,
int candidatesStart,
int candidatesEnd)
Call InputMethodService.onUpdateSelection()
.
Parameters |
oldSelStart |
int |
oldSelEnd |
int |
newSelStart |
int |
newSelEnd |
int |
candidatesStart |
int |
candidatesEnd |
int |
viewClicked
public void viewClicked (boolean focusChanged)
Parameters |
focusChanged |
boolean |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[]]