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

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

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

Bundle.putCharArray介绍

暂无

代码示例

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

public I arg(String key, char[] value) {
  args.putCharArray(key, value);
  return (I) this;
}

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

/**
 * Inserts a char array 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 a char array object, or null
 */
public Bundler putCharArray(String key, char[] value) {
 bundle.putCharArray(key, value);
 return this;
}

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

/**
 * Inserts a char array 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 a char array object, or null
 */
public Bundler putCharArray(String key, char[] value) {
 bundle.putCharArray(key, value);
 return this;
}

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

public BundleBuilder putCharArray(String key, char[] value) {
  bundle.putCharArray(key, value);
  return this;
}

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

/**
 * Inserts a char array 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 a char array object, or null
 * @return this bundler instance to chain method calls
 */
public Bundler put(String key, char[] value) {
 delegate.putCharArray(key, value);
 return this;
}

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

private static void putCharArray(String key, Bundle bundle) {
  bundle.putCharArray(key, getCharArray());
}

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

bundle.putCharArray(key, array);
} else if (valueType.equals(TYPE_STRING)) {
  bundle.putString(key, json.getString(JSON_VALUE));

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

when(bundle.getCharSequenceArrayList(anyString())).thenAnswer(get);
doAnswer(put).when(bundle).putCharArray(anyString(), any(char[].class));
when(bundle.getCharArray(anyString())).thenAnswer(get);

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

@Test
public void charArray() {
 char [] arr = new char[] { 'c', 'j' };
 bundle.putCharArray("foo", arr);
 assertThat(bundle.getCharArray("foo")).isEqualTo(arr);
 assertThat(bundle.getCharArray("bar")).isNull();
}

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

/**
 * 附加到Intent的Extra
 */
public DefaultUriRequest putExtra(String name, char[] value) {
  extra().putCharArray(name, value);
  return this;
}

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

logger1.logEvent("legal_event_name", params);
char[] val = {'b', 'a', 'd'};
params.putCharArray("legal_key", val);
logger1.logEvent("legal_event",params);

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

/**
 * Inserts a char array 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 a char array object, or null
 */
public Bundler putCharArray(String key, char[] value) {
 bundle.putCharArray(key, value);
 return this;
}

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

/**
 * Inserts a char array 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 a char array object, or null
 * @return this bundler instance to chain method calls
 */
public Bundler put(String key, char[] value) {
 delegate.putCharArray(key, value);
 return this;
}

代码示例来源:origin: LuckyJayce/EventBus-Apt

@Override
  public void put(Bundle bundle, String paramName, Object arg) {
    bundle.putCharArray(paramName, (char[]) arg);
  }
});

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

/**
 * Inserts a char array 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 a char array object, or null
 */
public Bundler add(String key, char[] value) {
  mBundle.putCharArray(key, value);
  return this;
}

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

/**
 * Inserts a char array 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 a char array object, or null
 */
public Bundler putCharArray(String key, char[] value) {
 bundle.putCharArray(key, value);
 return this;
}

代码示例来源:origin: org.androidannotations/androidannotations-api

public I arg(String key, char[] value) {
  args.putCharArray(key, value);
  return (I) this;
}

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

public BundleBuilder add(String key, char[] value) {
  bundle.putCharArray(key, value);
  return this;
}

代码示例来源:origin: hansenji/pocketknife

@Override
public void put(Bundle bundle, String target, String keyPrefix) {
  char[] charArray = (keyPrefix + target).toCharArray();
  bundle.putCharArray(keyPrefix, charArray);
}

代码示例来源:origin: xiaoxiaogogo/Qiaoba

public Builder withCharArray(String key, char[] val){
  if(mArgBundle == null){
    mArgBundle = new Bundle();
  }
  mArgBundle.putCharArray(key, val);
  return this;
}

相关文章

Bundle类方法