本文整理了Java中android.os.Parcelable.describeContents()
方法的一些代码示例,展示了Parcelable.describeContents()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Parcelable.describeContents()
方法的具体详情如下:
包路径:android.os.Parcelable
类名称:Parcelable
方法名:describeContents
[英]Describe the kinds of special objects contained in this Parcelable's marshalled representation.
[中]描述此包裹的编组表示中包含的特殊对象的种类。
代码示例来源:origin: android-hacker/VirtualXposed
@Override
public int describeContents() {
int contents = 0;
for (int i = 0; i < mList.size(); i++) {
contents |= mList.get(i).describeContents();
}
return contents;
}
代码示例来源:origin: kingargyle/adt-leanback-support
@Override
public int describeContents() {
return mInner.describeContents();
}
代码示例来源:origin: bzsome/VirtualApp-x326
@Override
public int describeContents() {
int contents = 0;
for (int i = 0; i < mList.size(); i++) {
contents |= mList.get(i).describeContents();
}
return contents;
}
代码示例来源:origin: darkskygit/VirtualApp
@Override
public int describeContents() {
int contents = 0;
for (int i = 0; i < mList.size(); i++) {
contents |= mList.get(i).describeContents();
}
return contents;
}
内容来源于网络,如有侵权,请联系作者删除!