get Support Parcelable Array List
fun <T : Parcelable> Bundle.getSupportParcelableArrayList(key: String, clazz: Class<T>): ArrayList<T>?
Gets parcelable array list with the value associated to the given key using appropriate API for Android Tiramisu and upwards.
Note: [Bundle.getParcelableArrayList(String)] has been deprecated starting with [Build.VERSION_CODES#TIRAMISU]. A Parcelable array list, or Return
null
.
Parameters
key
A String
, or null
.
clazz
The type of the object expected.