IT. Expert System.

Android Reference

KeyboardView.OnKeyboardActionListener


android.inputmethodservice

Interface KeyboardView.OnKeyboardActionListener

  • Enclosing class:
    KeyboardView


    public static interface KeyboardView.OnKeyboardActionListener
    Listener for virtual keyboard events.
    • Method Summary

      Methods
      Modifier and Type Method and Description
      void onKey(int primaryCode, int[] keyCodes)
      Send a key press to the listener.
      void onPress(int primaryCode)
      Called when the user presses a key.
      void onRelease(int primaryCode)
      Called when the user releases a key.
      void onText(CharSequence text)
      Sends a sequence of characters to the listener.
      void swipeDown()
      Called when the user quickly moves the finger from up to down.
      void swipeLeft()
      Called when the user quickly moves the finger from right to left.
      void swipeRight()
      Called when the user quickly moves the finger from left to right.
      void swipeUp()
      Called when the user quickly moves the finger from down to up.
    • Method Detail

      • onPress

        void onPress(int primaryCode)
        Called when the user presses a key. This is sent before the onKey(int, int[]) is called. For keys that repeat, this is only called once.
        Parameters:
        primaryCode - the unicode of the key being pressed. If the touch is not on a valid key, the value will be zero.
      • onRelease

        void onRelease(int primaryCode)
        Called when the user releases a key. This is sent after the onKey(int, int[]) is called. For keys that repeat, this is only called once.
        Parameters:
        primaryCode - the code of the key that was released
      • onKey

        void onKey(int primaryCode,
                 int[] keyCodes)
        Send a key press to the listener.
        Parameters:
        primaryCode - this is the key that was pressed
        keyCodes - the codes for all the possible alternative keys with the primary code being the first. If the primary key code is a single character such as an alphabet or number or symbol, the alternatives will include other characters that may be on the same key or adjacent keys. These codes are useful to correct for accidental presses of a key adjacent to the intended key.
      • onText

        void onText(CharSequence text)
        Sends a sequence of characters to the listener.
        Parameters:
        text - the sequence of characters to be displayed.
      • swipeLeft

        void swipeLeft()
        Called when the user quickly moves the finger from right to left.
      • swipeRight

        void swipeRight()
        Called when the user quickly moves the finger from left to right.
      • swipeDown

        void swipeDown()
        Called when the user quickly moves the finger from up to down.
      • swipeUp

        void swipeUp()
        Called when the user quickly moves the finger from down to up.


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: 247 / 158859295. Delta: 0.04484 с