Package com.pspdfkit.utils
Class IntentExtensions
-
- All Implemented Interfaces:
public final class IntentExtensions
-
-
Method Summary
Modifier and Type Method Description final static <T extends Any> T
getSupportParcelableExtra(Intent $self, String key, Class<T> clazz)
Retrieves extended data from the intent. -
-
Method Detail
-
getSupportParcelableExtra
final static <T extends Any> T getSupportParcelableExtra(Intent $self, String key, Class<T> clazz)
Retrieves extended data from the intent. using appropriate API for Android Tiramisu and upwards.
<p><b>Note: </b> [Intent.getParcelableExtra(String)] has been deprecated starting with [Build.VERSION_CODES#TIRAMISU].- Parameters:
key
- The name of the desired item.clazz
- The type of the object expected.- Returns:
the value of an item previously added with Intent.putExtra, or
null
if no Parcelable value was found.
-
-
-
-