get Parcelable
open fun <T> getParcelable(@NonNull() key: String, @NonNull() creator: Parcelable.Creator<T>): T
Content copied to clipboard
Return the parcelable in cache.
Return
the parcelable if cache exists or null otherwise
Parameters
key
The key of cache.
creator
The creator.
<T>
The value type.
open fun <T> getParcelable(@NonNull() key: String, @NonNull() creator: Parcelable.Creator<T>, defaultValue: T): T
Content copied to clipboard
Return the parcelable in cache.
Return
the parcelable if cache exists or defaultValue otherwise
Parameters
key
The key of cache.
creator
The creator.
defaultValue
The default value if the cache doesn't exist.
<T>
The value type.