FileDocCategorySizeDatePackage
InputBindResult.javaAPI DocAndroid 5.1 API3806Thu Mar 12 22:22:10 GMT 2015com.android.internal.view

InputBindResult

public final class InputBindResult extends Object implements android.os.Parcelable
Bundle of information returned by input method manager about a successful binding to an input method.

Fields Summary
static final String
TAG
public final IInputMethodSession
method
The input method service.
public final android.view.InputChannel
channel
The input channel used to send input events to this IME.
public final String
id
The ID for this input method, as found in InputMethodInfo; null if no input method will be bound.
public final int
sequence
Sequence number of this binding.
public final int
userActionNotificationSequenceNumber
Sequence number of user action notification.
public static final Parcelable.Creator
CREATOR
Used to make this class parcelable.
Constructors Summary
public InputBindResult(IInputMethodSession _method, android.view.InputChannel _channel, String _id, int _sequence, int _userActionNotificationSequenceNumber)


        
                  
        method = _method;
        channel = _channel;
        id = _id;
        sequence = _sequence;
        userActionNotificationSequenceNumber = _userActionNotificationSequenceNumber;
    
InputBindResult(android.os.Parcel source)

        method = IInputMethodSession.Stub.asInterface(source.readStrongBinder());
        if (source.readInt() != 0) {
            channel = InputChannel.CREATOR.createFromParcel(source);
        } else {
            channel = null;
        }
        id = source.readString();
        sequence = source.readInt();
        userActionNotificationSequenceNumber = source.readInt();
    
Methods Summary
public intdescribeContents()


    
       
        return channel != null ? channel.describeContents() : 0;
    
public java.lang.StringtoString()

        return "InputBindResult{" + method + " " + id
                + " sequence:" + sequence
                + " userActionNotificationSequenceNumber:" + userActionNotificationSequenceNumber
                + "}";
    
public voidwriteToParcel(android.os.Parcel dest, int flags)
Used to package this object into a {@link Parcel}.

param
dest The {@link Parcel} to be written.
param
flags The flags used for parceling.

        dest.writeStrongInterface(method);
        if (channel != null) {
            dest.writeInt(1);
            channel.writeToParcel(dest, flags);
        } else {
            dest.writeInt(0);
        }
        dest.writeString(id);
        dest.writeInt(sequence);
        dest.writeInt(userActionNotificationSequenceNumber);