Partager via


CloudMediaProviderContract.MediaColumns.SyncGeneration Field

Definition

Non-negative number associated with a media item indicating what generation or batch the media item was synced into the media collection.

[Android.Runtime.Register("SYNC_GENERATION", ApiSince=33)]
public const string SyncGeneration;
[<Android.Runtime.Register("SYNC_GENERATION", ApiSince=33)>]
val mutable SyncGeneration : string

Field Value

Attributes

Remarks

Non-negative number associated with a media item indicating what generation or batch the media item was synced into the media collection.

Providers should associate a monotonically increasing sync generation number to each media item which is expected to increase for each atomic modification on the media item. This is useful for the OS to quickly identify that a media item has changed since a previous point in time. Note that this does not need to be unique across all media items, i.e. multiple media items can have the same SYNC_GENERATION value. However, the modification of a media item should increase the MediaCollectionInfo#LAST_MEDIA_SYNC_GENERATION.

Type: LONG

Java documentation for android.provider.CloudMediaProviderContract.MediaColumns.SYNC_GENERATION.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to