Package com.pspdfkit.utils
Class BundleExtensions
-
- All Implemented Interfaces:
public final class BundleExtensions
-
-
Method Summary
Modifier and Type Method Description final static <T extends Any> T
getSupportParcelable(Bundle $self, String key, Class<T> clazz)
Gets parcelable with the value associated to the given key using appropriate API for Android Tiramisu and upwards. final static <T extends Parcelable> ArrayList<T>
getSupportParcelableArrayList(Bundle $self, String key, Class<T> clazz)
Gets parcelable array list with the value associated to the given key using appropriate API for Android Tiramisu and upwards. -
-
Method Detail
-
getSupportParcelable
final static <T extends Any> T getSupportParcelable(Bundle $self, String key, Class<T> clazz)
Gets parcelable with the value associated to the given key using appropriate API for Android Tiramisu and upwards.
<p><b>Note: </b> [Bundle.getParcelable(String)] has been deprecated starting with [Build.VERSION_CODES#TIRAMISU].- Parameters:
key
- AString
, ornull
.clazz
- The type of the object expected.- Returns:
A Parcelable value, or
null
.
-
getSupportParcelableArrayList
final static <T extends Parcelable> ArrayList<T> getSupportParcelableArrayList(Bundle $self, String key, Class<T> clazz)
Gets parcelable array list with the value associated to the given key using appropriate API for Android Tiramisu and upwards.
<p><b>Note: </b> [Bundle.getParcelableArrayList(String)] has been deprecated starting with [Build.VERSION_CODES#TIRAMISU].- Parameters:
key
- AString
, ornull
.clazz
- The type of the object expected.- Returns:
A Parcelable array list, or
null
.
-
-
-
-