diff --git a/arouter-api/src/main/java/com/alibaba/android/arouter/facade/Postcard.java b/arouter-api/src/main/java/com/alibaba/android/arouter/facade/Postcard.java index a886bb46..45071af2 100644 --- a/arouter-api/src/main/java/com/alibaba/android/arouter/facade/Postcard.java +++ b/arouter-api/src/main/java/com/alibaba/android/arouter/facade/Postcard.java @@ -497,6 +497,19 @@ public Postcard withShortArray(@Nullable String key, @Nullable short[] value) { mBundle.putShortArray(key, value); return this; } + + /** + * Inserts a boolean 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 boolean array object, or null + * @return current + */ + public Postcard withBooleanArray(@Nullable String key, @Nullable boolean[] value) { + mBundle.putBooleanArray(key, value); + return this; + } /** * Inserts a char array value into the mapping of this Bundle, replacing