toEnum

fun toEnum(classLoader: ClassLoader): Enum<*>

Unpacks the enum value from the parcel, using classLoader to resolve the enum class name.

Example

val enumValue: SomeEnum = parcelableEnum.toEnum(Application::class.java.classLoader!!)