SnapshotMetadataChange

  • SnapshotMetadataChange is a collection of changes to apply to the metadata of a snapshot, where fields not set retain their current values.

  • A Builder class is available for creating SnapshotMetadataChange objects.

  • EMPTY_CHANGE is a sentinel object for committing a change without modifying metadata.

  • Public methods allow getting the new cover image, description, played time, and progress value for the snapshot metadata.

public interface SnapshotMetadataChange

A collection of changes to apply to the metadata of a snapshot. Fields that are not set will retain their current values.

Nested Class Summary

class SnapshotMetadataChange.Builder Builder for SnapshotMetadataChange objects. 

Field Summary

public static final SnapshotMetadataChange EMPTY_CHANGE Sentinel object to use to commit a change without modifying the metadata.

Public Method Summary

abstract Bitmap
getCoverImage()
Returns the new cover image to set for the snapshot.
abstract String
getDescription()
Returns the new description to set for the snapshot.
abstract Long
getPlayedTimeMillis()
Returns the new played time to set for the snapshot.
abstract Long
getProgressValue()
Returns the new progress value to set for the snapshot.

Fields

public static final SnapshotMetadataChange EMPTY_CHANGE

Sentinel object to use to commit a change without modifying the metadata.

Public Methods

public abstract Bitmap getCoverImage ()

Returns the new cover image to set for the snapshot.

public abstract String getDescription ()

Returns the new description to set for the snapshot.

public abstract Long getPlayedTimeMillis ()

Returns the new played time to set for the snapshot.

public abstract Long getProgressValue ()

Returns the new progress value to set for the snapshot.