Albums
interface Albums
Provides functionality for working with albums.
Functions
Link copied to clipboard
abstract suspend fun addMediaToAlbum(albumId: Long, mediaIds: Set<Long> = emptySet(), mediaUris: List<Uri> = emptyList()): AddMediaToAlbumResult
Link copied to clipboard
abstract suspend fun createAlbum(userId: Long, name: String, type: AlbumType, mediaIds: Set<Long> = emptySet(), mediaUris: List<Uri> = emptyList()): CreateAlbumResult
Creates an album.
Link copied to clipboard
abstract fun createAlbumContentFlow(albumId: Long, sorting: Albums.ContentSorting = ContentSorting.CREATED_DESC): Flow<List<MediaItem>>
Link copied to clipboard
abstract fun createAlbumContentPagingFlow(albumId: Long, sorting: Albums.ContentSorting = ContentSorting.CREATED_DESC, config: PagingConfig = defaultPagingConfig): Flow<PagingData<MediaItem>>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun createAlbumsFlow(userId: Long, albumTypes: Set<AlbumType> = setOf(AlbumType.SIMPLE, AlbumType.SHARED_BY_ME), minItemCount: Int = 0, isVisible: Boolean? = null, hideItems: Boolean? = null, limit: Int? = null, sorting: Albums.AlbumsSorting = AlbumsSorting.UPDATED_DESC, mode: Albums.ListingMode = ListingMode.INTERSECT): Flow<List<AlbumItem>>
Link copied to clipboard
abstract fun createAlbumsPagingFlow(userId: Long, albumTypes: Set<AlbumType> = setOf(AlbumType.SIMPLE, AlbumType.SHARED_BY_ME), minItemCount: Int = 0, isVisible: Boolean? = null, hideItems: Boolean? = null, limit: Int? = null, sorting: Albums.AlbumsSorting = AlbumsSorting.UPDATED_DESC, mode: Albums.ListingMode = ListingMode.INTERSECT, config: PagingConfig = defaultPagingConfig): Flow<PagingData<AlbumItem>>
Creates Paging Flow for getting album list.
Link copied to clipboard
Link copied to clipboard
Deleting album with albumId.
Link copied to clipboard
abstract suspend fun deleteMediaFromAlbum(albumId: Long, mediaIds: Set<Long>): DeleteMediaFromAlbumResult
Link copied to clipboard
abstract suspend fun fetchAlbumByBackendId(userId: Long, albumBackendId: String, coversCount: Int? = null): AlbumItem?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Return a list of PhotoItem from album, selected by time period(range)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard