我是靠谱客的博主 背后期待,这篇文章主要介绍Parcel.writeStrongBinder 与 Parcel.writeStrongInterface 的区别,现在分享给大家,希望可以做个参考。

看源码 


android.os.Parcel  



/**
* Write an object into the parcel at the current dataPosition(),
* growing dataCapacity() if needed.
*/
public final void writeStrongInterface(IInterface val) {
writeStrongBinder(val == null ? null : val.asBinder());
}



只  是把 IInterface  转成了 Binder 对象 ,其实2者是一样的 。




http://item.taobao.com/item.htm?spm=a230r.1.14.107.Dxvf1N&id=36480821704&_u=9ddbah0c75


最后

以上就是背后期待最近收集整理的关于Parcel.writeStrongBinder 与 Parcel.writeStrongInterface 的区别的全部内容,更多相关Parcel.writeStrongBinder内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(154)

评论列表共有 0 条评论

立即
投稿
返回
顶部