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

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

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

Bundle.putCharSequenceArrayList介绍

暂无

代码示例

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

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

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

/**
 * Inserts an ArrayList<CharSequence> 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<CharSequence> object, or null
 * @return this bundler instance to chain method calls
 */
public Bundler putCharSequenceArrayList(String key, ArrayList<CharSequence> value) {
 delegate.putCharSequenceArrayList(key, value);
 return this;
}

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

/**
 * Inserts an ArrayList<CharSequence> 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<CharSequence> object, or null
 */
@TargetApi(8)
public Bundler putCharSequenceArrayList(String key, ArrayList<CharSequence> value) {
 bundle.putCharSequenceArrayList(key, value);
 return this;
}

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

/**
 * Inserts an ArrayList<CharSequence> 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<CharSequence> object, or null
 */
@TargetApi(8)
public Bundler putCharSequenceArrayList(String key, ArrayList<CharSequence> value) {
 bundle.putCharSequenceArrayList(key, value);
 return this;
}

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

when(bundle.getStringArrayList(anyString())).thenAnswer(get);
doAnswer(put).when(bundle).putCharSequenceArrayList(anyString(), any(ArrayList.class));
when(bundle.getCharSequenceArrayList(anyString())).thenAnswer(get);

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

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

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

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

代码示例来源:origin: com.codeslap/groundy

/**
 * Inserts an ArrayList<CharSequence> 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<CharSequence> object, or null
 */
public Bundler add(String key, ArrayList<CharSequence> value) {
  mBundle.putCharSequenceArrayList(key, value);
  return this;
}

代码示例来源:origin: com.github.stephanenicolas.dart.v2/henson

/**
 * Inserts an ArrayList<CharSequence> 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<CharSequence> object, or null
 * @return this bundler instance to chain method calls
 */
public Bundler putCharSequenceArrayList(String key, ArrayList<CharSequence> value) {
 delegate.putCharSequenceArrayList(key, value);
 return this;
}

代码示例来源:origin: tom91136/Akatsuki

public BundleBuilder addCharSequenceList(String key, ArrayList<CharSequence> value) {
  bundle.putCharSequenceArrayList(key, value);
  return this;
}

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

public void putCharSequenceArrayList(Bundle state, String key, ArrayList<CharSequence> x) {
  state.putCharSequenceArrayList(key + mBaseKey, x);
}

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

/**
 * Inserts an ArrayList<CharSequence> 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<CharSequence> object, or null
 */
@TargetApi(8)
public Bundler putCharSequenceArrayList(String key, ArrayList<CharSequence> value) {
 bundle.putCharSequenceArrayList(key, value);
 return this;
}

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

/**
 * Inserts an ArrayList<CharSequence> 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<CharSequence> object, or null
 */
@TargetApi(8)
public Bundler putCharSequenceArrayList(String key, ArrayList<CharSequence> value) {
 bundle.putCharSequenceArrayList(key, value);
 return this;
}

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

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

代码示例来源:origin: drakeet/Floo

@NonNull @Override @CheckResult
public Navigation putCharSequenceArrayListExtra(@NonNull String name, @NonNull ArrayList<CharSequence> value) {
  bundle.putCharSequenceArrayList(name, value);
  return this;
}

代码示例来源:origin: BoD/jraf-android-util

/**
 * @param items The list items, or {@code null} for no list.
 */
public AlertDialogFragment items(@Nullable ArrayList<CharSequence> items) {
  getArgs().putCharSequenceArrayList("items", items);
  return this;
}

代码示例来源:origin: 121880399/QuickMvp

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

代码示例来源:origin: BoD/jraf-android-util

/**
 * @param items The list items, or {@code null} for no list.
 */
public FrameworkAlertDialogFragment items(@Nullable ArrayList<CharSequence> items) {
  getArgs().putCharSequenceArrayList("items", items);
  return this;
}

代码示例来源:origin: AndroidHardening/PdfViewer

@Override
public void onSaveInstanceState(Bundle savedInstanceState) {
  super.onSaveInstanceState(savedInstanceState);
  savedInstanceState.putParcelable(STATE_URI, mUri);
  savedInstanceState.putInt(STATE_PAGE, mPage);
  savedInstanceState.putInt(STATE_ZOOM_LEVEL, mZoomLevel);
  savedInstanceState.putCharSequenceArrayList(STATE_PROPERTIES,
      (ArrayList<CharSequence>) mDocumentProperties);
}

代码示例来源:origin: AndroidHardening/PdfViewer

public static DocumentPropertiesFragment getInstance(final ArrayList<CharSequence> metaData) {
  if (sDocumentPropertiesFragment == null) {
    sDocumentPropertiesFragment = new DocumentPropertiesFragment();
    final Bundle args = new Bundle();
    args.putCharSequenceArrayList(KEY_DOCUMENT_PROPERTIES, metaData);
    sDocumentPropertiesFragment.setArguments(args);
  } else {
    final Bundle args = sDocumentPropertiesFragment.getArguments();
    args.clear();
    args.putCharSequenceArrayList(KEY_DOCUMENT_PROPERTIES, metaData);
  }
  return sDocumentPropertiesFragment;
}

相关文章

Bundle类方法