/** * Inserts a Size 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 Size object, or null */ @TargetApi(21) public Bundler putSize(String key, Size value) { bundle.putSize(key, value); return this; }
} else if (Build.VERSION.SDK_INT > 21 && data instanceof Size) { bundle.putSize(key, (Size) data); } else if (Build.VERSION.SDK_INT > 21 && data instanceof SizeF) {
bundle.putSize(key, (Size) value); return; } else if (value instanceof SizeF) {
/** * Inserts a Size 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 Size object, or null */ @TargetApi(21) public Bundler putSize(String key, Size value) { bundle.putSize(key, value); return this; }
/** * Inserts a Size 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 Size object, or null */ @TargetApi(21) public Bundler putSize(String key, Size value) { bundle.putSize(key, value); return this; }
/** * Inserts a Size 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 Size object, or null */ @TargetApi(21) public Bundler putSize(String key, Size value) { bundle.putSize(key, value); return this; }
public static void putToBundle(@NonNull Bundle bundle, String key, Size value) { bundle.putSize(key, value); } public static void putToBundle(@NonNull Bundle bundle, String key, SizeF value) {