createSetOptimized
inline fun <T> Parcel.createSetOptimized(elementReader: (Parcel) -> T): Set<T>?
Content copied to clipboard
Creates and reads a set with element type T from a Parcel, by invoking elementReader on each element in the Set.
The set must have been written by Parcel.writeCollectionOptimized.
Return
null
when the collection
argument of Parcel.writeCollectionOptimized is null
.