看源码
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内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复