Code example for Parcel

Methods: readInt, readString, readStrongBinder

0
        id = _id;
        sequence = _sequence;
    } 
     
    InputBindResult(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();
    } 
 
    @Override 
    public String toString() {
        return "InputBindResult{" + method + " " + id
                + " #" + sequence + "}";
    }