Added in API level 3

InputBinding

class InputBinding : Parcelable
kotlin.Any
   ↳ android.view.inputmethod.InputBinding

Information given to an InputMethod about a client connecting to it.

Summary

Inherited constants
Public constructors
InputBinding(conn: InputConnection!, connToken: IBinder!, uid: Int, pid: Int)

Constructor.

Constructor from an existing InputBinding taking a new local input connection interface.

Public methods
Int

InputConnection!

Return the connection for interacting back with the application.

IBinder!

Return the token for the connection back to the application.

Int

Return the process id where this binding came from.

Int

Return the user id of the client associated with this binding.

String

Unit
writeToParcel(dest: Parcel, flags: Int)

Used to package this object into a Parcel.

Properties
static Parcelable.Creator<InputBinding!>

Used to make this class parcelable.

Public constructors

InputBinding

Added in API level 3
InputBinding(
    conn: InputConnection!,
    connToken: IBinder!,
    uid: Int,
    pid: Int)

Constructor.

Parameters
conn InputConnection!: The interface for communicating back with the application.
connToken IBinder!: A remoteable token for communicating across processes.
uid Int: The user id of the client of this binding.
pid Int: The process id of where the binding came from.

InputBinding

Added in API level 3
InputBinding(
    conn: InputConnection!,
    binding: InputBinding!)

Constructor from an existing InputBinding taking a new local input connection interface.

Parameters
conn InputConnection!: The new connection interface.
binding InputBinding!: Existing binding to copy.

Public methods

describeContents

Added in API level 3
fun describeContents(): Int
Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR

getConnection

Added in API level 3
fun getConnection(): InputConnection!

Return the connection for interacting back with the application.

getConnectionToken

Added in API level 3
fun getConnectionToken(): IBinder!

Return the token for the connection back to the application. You can not use this directly, it must be converted to a InputConnection for you.

getPid

Added in API level 3
fun getPid(): Int

Return the process id where this binding came from.

getUid

Added in API level 3
fun getUid(): Int

Return the user id of the client associated with this binding.

toString

Added in API level 3
fun toString(): String
Return
String a string representation of the object.

writeToParcel

Added in API level 3
fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit

Used to package this object into a Parcel.

Parameters
dest Parcel: The Parcel to be written.
flags Int: The flags used for parceling.

Properties

CREATOR

Added in API level 3
static val CREATOR: Parcelable.Creator<InputBinding!>

Used to make this class parcelable.