Code example for Parcel

Methods: enforceInterfacereadIntreadStrongBinder

0
reply.writeString(DESCRIPTOR);
return true; 
} 
case TRANSACTION_onStateChanged:
{ 
data.enforceInterface(DESCRIPTOR);
com.android.im.IImConnection _arg0;
_arg0 = com.android.im.IImConnection.Stub.asInterface(data.readStrongBinder());
int _arg1;
_arg1 = data.readInt();
com.android.im.engine.ImErrorInfo _arg2;
if ((0!=data.readInt())) {
_arg2 = com.android.im.engine.ImErrorInfo.CREATOR.createFromParcel(data);
} 
else { 
_arg2 = null;
} 
this.onStateChanged(_arg0, _arg1, _arg2);
return true; 
} 
case TRANSACTION_onUserPresenceUpdated:
{ 
data.enforceInterface(DESCRIPTOR);
com.android.im.IImConnection _arg0;
_arg0 = com.android.im.IImConnection.Stub.asInterface(data.readStrongBinder());
this.onUserPresenceUpdated(_arg0);
return true; 
} 
case TRANSACTION_onUpdatePresenceError:
{ 
data.enforceInterface(DESCRIPTOR);
com.android.im.IImConnection _arg0;
_arg0 = com.android.im.IImConnection.Stub.asInterface(data.readStrongBinder());
com.android.im.engine.ImErrorInfo _arg1;
if ((0!=data.readInt())) {
_arg1 = com.android.im.engine.ImErrorInfo.CREATOR.createFromParcel(data);
} 
else { 
_arg1 = null;
} 
this.onUpdatePresenceError(_arg0, _arg1);