FacesManager

interface FacesManager

Photo face manager.

Face Manager allows you to retrieve faces from photos uploaded to the cloud, as well as associated albums and photos.

Functions

Link copied to clipboard
abstract fun createFaceAlbumFlow(faceId: String): Flow<AlbumItem?>

Creates a personal album flow for a face with faceId that is present in the album.

Link copied to clipboard
abstract fun createFacePhotosPagingFlow(faceId: String): Flow<PagingData<PhotoItem>>

Creates a photo paging flow for a face with faceId that is present in the photos.

Link copied to clipboard
abstract fun createPhotoFacesFlow(photoId: Long): Flow<List<FaceItem>>

Creates a flow with faces for a photo with photoId.

Link copied to clipboard
abstract suspend fun fetchFaceAlbum(faceId: String)

Fetch album for face with id faceId.

Link copied to clipboard
abstract suspend fun fetchFacePhotos(faceId: String)

Fetch photos for face by faceId.

Link copied to clipboard
abstract suspend fun fetchPhotoFaces(photoId: Long)

Fetch photo faces by photoId.