android.os.Parcelable.describeContents()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(1.1k)|赞(0)|评价(0)|浏览(129)

本文整理了Java中android.os.Parcelable.describeContents()方法的一些代码示例,展示了Parcelable.describeContents()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Parcelable.describeContents()方法的具体详情如下:
包路径:android.os.Parcelable
类名称:Parcelable
方法名:describeContents

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;
}

相关文章