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

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

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

Bundle.putIntegerArrayList介绍

暂无

代码示例

代码示例来源:origin: androidannotations/androidannotations

public I integerArrayListArg(String key, ArrayList<Integer> value) {
  args.putIntegerArrayList(key, value);
  return (I) this;
}

代码示例来源:origin: ogaclejapan/SmartTabLayout

/**
 * Inserts an ArrayList<Integer> value into the mapping of this Bundle, replacing
 * any existing value for the given key.  Either key or value may be null.
 *
 * @param key   a String, or null
 * @param value an ArrayList<Integer> object, or null
 */
public Bundler putIntegerArrayList(String key, ArrayList<Integer> value) {
 bundle.putIntegerArrayList(key, value);
 return this;
}

代码示例来源:origin: ogaclejapan/SmartTabLayout

/**
 * Inserts an ArrayList<Integer> value into the mapping of this Bundle, replacing
 * any existing value for the given key.  Either key or value may be null.
 *
 * @param key   a String, or null
 * @param value an ArrayList<Integer> object, or null
 */
public Bundler putIntegerArrayList(String key, ArrayList<Integer> value) {
 bundle.putIntegerArrayList(key, value);
 return this;
}

代码示例来源:origin: f2prateek/dart

/**
 * Inserts an ArrayList<Integer> value into the mapping of the underlying Bundle, replacing any
 * existing value for the given key. Either key or value may be null.
 *
 * @param key a String, or null
 * @param value an ArrayList<Integer> object, or null
 * @return this bundler instance to chain method calls
 */
public Bundler putIntegerArrayList(String key, ArrayList<Integer> value) {
 delegate.putIntegerArrayList(key, value);
 return this;
}

代码示例来源:origin: bluelinelabs/Conductor

public BundleBuilder putIntegerArrayList(String key, ArrayList<Integer> value) {
  bundle.putIntegerArrayList(key, value);
  return this;
}

代码示例来源:origin: android-hacker/VirtualXposed

@Override
  public Bundle getAvailableChannels(int band) throws RemoteException {
    Bundle bundle = new Bundle();
    bundle.putIntegerArrayList(WifiScanner.GET_AVAILABLE_CHANNELS_EXTRA.get(), new ArrayList<Integer>(0));
    return bundle;
  }
}

代码示例来源:origin: bluelinelabs/Conductor

@Override
public Parcelable saveState() {
  Bundle bundle = new Bundle();
  bundle.putSparseParcelableArray(KEY_SAVED_PAGES, savedPages);
  bundle.putInt(KEY_MAX_PAGES_TO_STATE_SAVE, maxPagesToStateSave);
  bundle.putIntegerArrayList(KEY_SAVE_PAGE_HISTORY, savedPageHistory);
  return bundle;
}

代码示例来源:origin: konmik/nucleus

/**
 * {@inheritDoc}
 */
@CallSuper
@Override
protected void onSave(Bundle state) {
  for (int i = requested.size() - 1; i >= 0; i--) {
    int restartableId = requested.get(i);
    Subscription subscription = restartableSubscriptions.get(restartableId);
    if (subscription != null && subscription.isUnsubscribed())
      requested.remove(i);
  }
  state.putIntegerArrayList(REQUESTED_KEY, requested);
}

代码示例来源:origin: iSoron/uhabits

@Override
public void onSaveInstanceState(Bundle outState) {
  if (mTimePicker != null) {
    outState.putInt(KEY_HOUR_OF_DAY, mTimePicker.getHours());
    outState.putInt(KEY_MINUTE, mTimePicker.getMinutes());
    outState.putBoolean(KEY_IS_24_HOUR_VIEW, mIs24HourMode);
    outState.putInt(KEY_CURRENT_ITEM_SHOWING, mTimePicker.getCurrentItemShowing());
    outState.putBoolean(KEY_IN_KB_MODE, mInKbMode);
    if (mInKbMode) {
      outState.putIntegerArrayList(KEY_TYPED_TIMES, mTypedTimes);
    }
    outState.putBoolean(KEY_DARK_THEME, mThemeDark);
  }
}

代码示例来源:origin: wangdan/AisenWeiBo

@Override
public void onSaveInstanceState(Bundle outState) {
  if (mTimePicker != null) {
    outState.putInt(KEY_HOUR_OF_DAY, mTimePicker.getHours());
    outState.putInt(KEY_MINUTE, mTimePicker.getMinutes());
    outState.putBoolean(KEY_IS_24_HOUR_VIEW, mIs24HourMode);
    outState.putInt(KEY_CURRENT_ITEM_SHOWING, mTimePicker.getCurrentItemShowing());
    outState.putBoolean(KEY_IN_KB_MODE, mInKbMode);
    if (mInKbMode) {
      outState.putIntegerArrayList(KEY_TYPED_TIMES, mTypedTimes);
    }
    outState.putBoolean(KEY_VIBRATE, mVibrate);
  }
}

代码示例来源:origin: wdullaer/MaterialDateTimePicker

@Override
public void onSaveInstanceState(@NonNull Bundle outState) {
  if (mTimePicker != null) {
    outState.putParcelable(KEY_INITIAL_TIME, mTimePicker.getTime());
    outState.putBoolean(KEY_IS_24_HOUR_VIEW, mIs24HourMode);
    outState.putInt(KEY_CURRENT_ITEM_SHOWING, mTimePicker.getCurrentItemShowing());
    outState.putBoolean(KEY_IN_KB_MODE, mInKbMode);
    if (mInKbMode) {
      outState.putIntegerArrayList(KEY_TYPED_TIMES, mTypedTimes);
    }
    outState.putString(KEY_TITLE, mTitle);
    outState.putBoolean(KEY_THEME_DARK, mThemeDark);
    outState.putBoolean(KEY_THEME_DARK_CHANGED, mThemeDarkChanged);
    outState.putInt(KEY_ACCENT, mAccentColor);
    outState.putBoolean(KEY_VIBRATE, mVibrate);
    outState.putBoolean(KEY_DISMISS, mDismissOnPause);
    outState.putBoolean(KEY_ENABLE_SECONDS, mEnableSeconds);
    outState.putBoolean(KEY_ENABLE_MINUTES, mEnableMinutes);
    outState.putInt(KEY_OK_RESID, mOkResid);
    outState.putString(KEY_OK_STRING, mOkString);
    outState.putInt(KEY_OK_COLOR, mOkColor);
    outState.putInt(KEY_CANCEL_RESID, mCancelResid);
    outState.putString(KEY_CANCEL_STRING, mCancelString);
    outState.putInt(KEY_CANCEL_COLOR, mCancelColor);
    outState.putSerializable(KEY_VERSION, mVersion);
    outState.putParcelable(KEY_TIMEPOINTLIMITER, mLimiter);
    outState.putSerializable(KEY_LOCALE, mLocale);
  }
}

代码示例来源:origin: robolectric/robolectric

@Test
public void intArrayList() {
 ArrayList<Integer> list = new ArrayList<>();
 list.add(100);
 bundle.putIntegerArrayList("foo", new ArrayList<>(list));
 assertThat(bundle.getIntegerArrayList("foo")).isEqualTo(list);
 assertThat(bundle.getIntegerArrayList("bar")).isNull();
}

代码示例来源:origin: konmik/nucleus

when(bundle.getSerializable(anyString())).thenAnswer(get);
doAnswer(put).when(bundle).putIntegerArrayList(anyString(), any(ArrayList.class));
when(bundle.getIntegerArrayList(anyString())).thenAnswer(get);

代码示例来源:origin: meituan/WMRouter

/**
 * 附加到Intent的Extra
 */
public DefaultUriRequest putIntentIntegerArrayListExtra(String name, ArrayList<Integer> value) {
  extra().putIntegerArrayList(name, value);
  return this;
}

代码示例来源:origin: limedroid/XDroidMvp

public Router putIntegerArrayList(@Nullable String key, @Nullable ArrayList<Integer> value) {
  getBundleData().putIntegerArrayList(key, value);
  return this;
}

代码示例来源:origin: 80945540/LCRapidDevelop

/**
 * Inserts an ArrayList<Integer> value into the mapping of this Bundle, replacing
 * any existing value for the given key.  Either key or value may be null.
 *
 * @param key   a String, or null
 * @param value an ArrayList<Integer> object, or null
 */
public Bundler putIntegerArrayList(String key, ArrayList<Integer> value) {
 bundle.putIntegerArrayList(key, value);
 return this;
}

代码示例来源:origin: 80945540/FreeBook

/**
 * Inserts an ArrayList<Integer> value into the mapping of this Bundle, replacing
 * any existing value for the given key.  Either key or value may be null.
 *
 * @param key   a String, or null
 * @param value an ArrayList<Integer> object, or null
 */
public Bundler putIntegerArrayList(String key, ArrayList<Integer> value) {
 bundle.putIntegerArrayList(key, value);
 return this;
}

代码示例来源:origin: evernote/android-state

@Override
public void put(@NonNull String key, @NonNull List<Integer> value, @NonNull Bundle bundle) {
  ArrayList<Integer> arrayList = value instanceof ArrayList ? (ArrayList<Integer>) value : new ArrayList<>(value);
  bundle.putIntegerArrayList(key, arrayList);
}

代码示例来源:origin: MFlisar/GDPRDialog

public void save(Bundle outState) {
  outState.putInt(KEY_STEP, mCurrentStep);
  if (mSelectedConsent != null) {
    outState.putInt(KEY_SELECTED_CONSENT, mSelectedConsent.ordinal());
  }
  outState.putBoolean(KEY_AGE_CONFIRMED, mAgeConfirmed);
  outState.putIntegerArrayList(KEY_EXPLICITLY_CONFIRMED_SERVICES, mExplicitlyConfirmedServices);
}

代码示例来源:origin: proninyaroslav/libretorrent

@Override
public void onSaveInstanceState(@NonNull Bundle outState)
{
  outState.putParcelable(TAG_PREV_IMPL_INTENT, prevImplIntent);
  outState.putIntegerArrayList(TAG_SELECTABLE_ADAPTER, adapter.getSelectedItems());
  outState.putBoolean(TAG_IN_ACTION_MODE, inActionMode);
  outState.putStringArrayList(TAG_SELECTED_TORRENTS, selectedTorrents);
  torrentsListState = layoutManager.onSaveInstanceState();
  outState.putParcelable(TAG_TORRENTS_LIST_STATE, torrentsListState);
  super.onSaveInstanceState(outState);
}

相关文章

Bundle类方法