Bundleable.Creator


interface Bundleable.Creator<T : Bundleable?>


Summary

Public functions

T!
fromBundle(bundle: Bundle!)

Restores a Bundleable instance from a Bundle produced by toBundle.

Public functions

fromBundle

fun fromBundle(bundle: Bundle!): T!

Restores a Bundleable instance from a Bundle produced by toBundle.

It guarantees the compatibility of Bundle representations produced by different versions of toBundle by providing best default values for missing fields. It throws an exception if any essential fields are missing.