getSupportParcelableExtra

Retrieves extended data from the intent. using appropriate API for Android Tiramisu and upwards.

Note: [Intent.getParcelableExtra(String)] has been deprecated starting with [Build.VERSION_CODES#TIRAMISU].

Return

the value of an item previously added with Intent.putExtra, or null if no Parcelable value was found.

Parameters

key

The name of the desired item.

clazz

The type of the object expected.