IT. Expert System.

Android Reference

AbstractInputMethodService


android.inputmethodservice

Class AbstractInputMethodService

  • All Implemented Interfaces:
    ComponentCallbacks, ComponentCallbacks2, KeyEvent.Callback
    Direct Known Subclasses:
    InputMethodService


    public abstract class AbstractInputMethodService
    extends Service
    implements KeyEvent.Callback
    AbstractInputMethodService provides a abstract base class for input methods. Normal input method implementations will not derive from this directly, instead building on top of InputMethodService or another more complete base class. Be sure to read InputMethod for more information on the basics of writing input methods.

    This class combines a Service (representing the input method component to the system with the InputMethod interface that input methods must implement. This base class takes care of reporting your InputMethod from the service when clients bind to it, but provides no standard implementation of the InputMethod interface itself. Derived classes must implement that interface.

    • Constructor Detail

      • AbstractInputMethodService

        public AbstractInputMethodService()
    • Method Detail

      • dump

        protected void dump(FileDescriptor fd,
                PrintWriter fout,
                String[] args)
        Implement this to handle Binder.dump() calls on your input method.
        Overrides:
        dump in class Service
        Parameters:
        fd - The raw file descriptor that the dump is being sent to.
        fout - The PrintWriter to which you should dump your state. This will be closed for you after you return.
        args - additional arguments to the dump request.
      • onBind

        public final IBinder onBind(Intent intent)
        Description copied from class: Service
        Return the communication channel to the service. May return null if clients can not bind to the service. The returned IBinder is usually for a complex interface that has been described using aidl.

        Note that unlike other application components, calls on to the IBinder interface returned here may not happen on the main thread of the process. More information about the main thread can be found in Processes and Threads.

        Specified by:
        onBind in class Service
        Parameters:
        intent - The Intent that was used to bind to this service, as given to Context.bindService. Note that any extras that were included with the Intent at that point will not be seen here.
        Returns:
        Return an IBinder through which clients can call on to the service.
      • onTrackballEvent

        public boolean onTrackballEvent(MotionEvent event)
        Implement this to handle trackball events on your input method.
        Parameters:
        event - The motion event being received.
        Returns:
        True if the event was handled in this function, false otherwise.
        See Also:
        View#onTrackballEvent
      • onGenericMotionEvent

        public boolean onGenericMotionEvent(MotionEvent event)
        Implement this to handle generic motion events on your input method.
        Parameters:
        event - The motion event being received.
        Returns:
        True if the event was handled in this function, false otherwise.
        See Also:
        View#onGenericMotionEvent


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 197 / 248527171. Delta: 0.03209 с