public interface

Bundleable.Creator<T extends Bundleable>

 androidx.media3.common.Bundleable.Creator<T>

Overview

Interface for the static CREATOR field of Bundleable classes.

Summary

Methods
public BundleablefromBundle(Bundle bundle)

Restores a Bundleable instance from a produced by Bundleable.toBundle().

Methods

public Bundleable fromBundle(Bundle bundle)

Restores a Bundleable instance from a produced by Bundleable.toBundle().

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