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. |
|
InputBinding(conn: InputConnection!, binding: InputBinding!)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 |
getPid()Return the process id where this binding came from. |
| Int |
getUid()Return the user id of the client associated with this binding. |
| String |
toString() |
| Unit |
writeToParcel(dest: Parcel, flags: Int)Used to package this object into a |
| Properties | |
|---|---|
| static Parcelable.Creator<InputBinding!> |
Used to make this class parcelable. |
Public constructors
InputBinding
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
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
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
fun getConnection(): InputConnection!
Return the connection for interacting back with the application.
getConnectionToken
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.
getUid
fun getUid(): Int
Return the user id of the client associated with this binding.
toString
fun toString(): String
| Return | |
|---|---|
String |
a string representation of the object. |
writeToParcel
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
static val CREATOR: Parcelable.Creator<InputBinding!>
Used to make this class parcelable.