media/src/main/java/androidx/media/MediaItem2.java
static MediaItem2 fromBundle(@NonNull Bundle bundle, @Nullable UUID uuid) {
        if (bundle == null) {
            return null;
        }
        final String id = bundle.getString(KEY_ID);
        final Bundle metadataBundle = bundle.getBundle(KEY_METADATA);
        final MediaMetadata2 metadata = metadataBundle != null
                ? MediaMetadata2.fromBundle(metadataBundle) : null;
        final int flags = bundle.getInt(KEY_FLAGS);
        return new MediaItem2(id, null, metadata, flags, uuid);
    }
/**
     * Create a MediaItem2 from the {@link Bundle} with the specified {@link UUID}.
     * If {@link UUID}
     * can be null for creating new.
     *
     * @param bundle The bundle which was published by {@link MediaItem2#toBundle()}.
     * @param uuid A {@link UUID} to override. Can be {@link null} for override.
     * @return The newly created MediaItem2
     */
Create a MediaItem2 from the  Bundle with the specified  UUID.
If  UUID
can be null for creating new.

@param bundle The bundle which was published by  MediaItem2#toBundle().
@param uuid A  UUID to override. Can be  null for override.
@return The newly created MediaItem2
Create a MediaItem2 from the Bundle with the specified UUID . If UUID can be null for creating new . @param bundle The bundle which was published by MediaItem2#toBundle () . @param uuid A UUID to override . Can be null for override . @return The newly created MediaItem2
static MediaItem2 fromBundle(@NonNull Bundle bundle, @Nullable UUID uuid) {
        if (bundle == null) {
            return null;
        }
        final String id = bundle.getString(KEY_ID);
        final Bundle metadataBundle = bundle.getBundle(KEY_METADATA);
        final MediaMetadata2 metadata = metadataBundle != null
                ? MediaMetadata2.fromBundle(metadataBundle) : null;
        final int flags = bundle.getInt(KEY_FLAGS);
        return new MediaItem2(id, null, metadata, flags, uuid);
    }
static MediaItem2 fromBundle ( @ NonNull Bundle bundle , @ Nullable UUID uuid ) { if ( bundle == null ) { return null ; } final String id = bundle . getString ( KEY_ID ) ; final Bundle metadataBundle = bundle . getBundle ( KEY_METADATA ) ; final MediaMetadata2 metadata = metadataBundle != null ? MediaMetadata2 . fromBundle ( metadataBundle ) : null ; final int flags = bundle . getInt ( KEY_FLAGS ) ; return new MediaItem2 ( id , null , metadata , flags , uuid ) ; }
Create a MediaItem2 from the {@link Bundle} with the specified {@link UUID}.
Create a MediaItem2 from the { @link Bundle } with the specified { @link UUID } .