android.os.Bundle.clone()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(162)

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

Bundle.clone介绍

暂无

代码示例

代码示例来源:origin: facebook/facebook-android-sdk

/**
 * Returns the values in the container packaged in a bundle.
 * @return A bundle with the values.
 */
public Bundle getBundle() {
  return (Bundle)this.bundle.clone();
}

代码示例来源:origin: facebook/facebook-android-sdk

protected ShareOpenGraphValueContainer(
    final Builder<P, E> builder) {
  super();
  this.bundle = (Bundle)builder.bundle.clone();
}

代码示例来源:origin: WeAreFairphone/FP2-Launcher

public PendingAddWidgetInfo(PendingAddWidgetInfo copy) {
  minWidth = copy.minWidth;
  minHeight = copy.minHeight;
  minResizeWidth = copy.minResizeWidth;
  minResizeHeight = copy.minResizeHeight;
  previewImage = copy.previewImage;
  icon = copy.icon;
  info = copy.info;
  boundWidget = copy.boundWidget;
  mimeType = copy.mimeType;
  configurationData = copy.configurationData;
  componentName = copy.componentName;
  itemType = copy.itemType;
  spanX = copy.spanX;
  spanY = copy.spanY;
  minSpanX = copy.minSpanX;
  minSpanY = copy.minSpanY;
  bindOptions = copy.bindOptions == null ? null : (Bundle) copy.bindOptions.clone();
}

代码示例来源:origin: JessYanCoding/MVPArt

/**
 * Make this message like o.  Performs a shallow copy of the data field.
 * Does not copy the linked list fields, nor the timestamp or
 * target/callback of the original message.
 */
public void copyFrom(Message o) {
  this.flags = o.flags & ~FLAGS_TO_CLEAR_ON_COPY_FROM;
  this.what = o.what;
  this.str = o.str;
  this.presenter = o.presenter;
  this.arg1 = o.arg1;
  this.arg2 = o.arg2;
  this.obj = o.obj;
  this.objs = o.objs;
  this.replyTo = o.replyTo;
  this.sendingUid = o.sendingUid;
  if (o.data != null) {
    this.data = (Bundle) o.data.clone();
  } else {
    this.data = null;
  }
}

代码示例来源:origin: org.greenrobot/eventbus

bundle = (Bundle) argumentsForErrorDialog.clone();
} else {
  bundle = new Bundle();

代码示例来源:origin: jorgegil96/All-NBA

switch (position) {
  case GAME_THREAD_TAB:
    Bundle liveBundle = (Bundle) bundle.clone();
    liveBundle.putSerializable(GameThreadFragment.THREAD_TYPE_KEY, GameThreadType.LIVE);
    if (fragmentMap.get(0) != null) {
    return tab2;
  case POST_GAME_TAB:
    Bundle postBundle = (Bundle) bundle.clone();
    postBundle.putSerializable(GameThreadFragment.THREAD_TYPE_KEY, GameThreadType.POST);
    if (fragmentMap.get(2) != null) {

代码示例来源:origin: de.greenrobot/eventbus

bundle = (Bundle) argumentsForErrorDialog.clone();
} else {
  bundle = new Bundle();

代码示例来源:origin: yangguangfu520/MobilePlayer1020

bundle = (Bundle) argumentsForErrorDialog.clone();
} else {
  bundle = new Bundle();

代码示例来源:origin: fr.avianey/facebook-android-api

Bundle resultBundle = (Bundle) msg.getData().clone();
resultBundle.putLong(EXPIRES, expiresAtMsecFromEpoch);

代码示例来源:origin: DeviceConnect/DeviceConnect-Android

touchdata.putFloat(TouchProfile.PARAM_X, touchEvent.getX());
touchdata.putFloat(TouchProfile.PARAM_Y, touchEvent.getY());
touchlist.add((Bundle) touchdata.clone());
touches.putParcelableArray(TouchProfile.PARAM_TOUCHES, touchlist.toArray(new Bundle[touchlist.size()]));
List<Event> events = EventManager.INSTANCE.getEventList(serviceId, TouchProfileConstants.PROFILE_NAME,

相关文章

Bundle类方法