data class AssetLibrary(val tabs: () -> List<LibraryCategory>, val images: () -> LibraryCategory = { LibraryCategory.Images }, val videos: () -> LibraryCategory = { LibraryCategory.Video }, val gallery: () -> LibraryCategory = { LibraryCategory.getGallery(includeAVResources = false) }, val audios: () -> LibraryCategory = { LibraryCategory.Audio }, val text: () -> LibraryCategory = { LibraryCategory.Text }, val shapes: () -> LibraryCategory = { LibraryCategory.Shapes }, val stickers: () -> LibraryCategory = { LibraryCategory.Stickers }, val overlays: () -> LibraryCategory = {
createOverlaysCategory(
videos = videos().withoutSystemGallerySections(),
images = images().withoutSystemGallerySections(),
)
}, val clips: () -> LibraryCategory = {
createClipsCategory(
videos = videos().withoutSystemGallerySections(),
images = images().withoutSystemGallerySections(),
)
}, val elements: () -> LibraryCategory = {
LibraryCategory.getElements(
images = images(),
videos = videos(),
audios = audios(),
text = text(),
shapes = shapes(),
stickers = stickers(),
)
}, val stickersAndShapes: () -> LibraryCategory = {
createStickersAndShapesCategory(
stickers = stickers(),
shapes = shapes(),
)
}) Configuration class for the asset library.
Parameters
a provider for the list of categories that are displayed as tabs in the asset library.
a provider for the category that is displaying elements tab.
a provider for the category that is displayed when inserting/replacing an image asset.
a provider for the category that is displayed when inserting/replacing a video asset.
a provider for the category that is displayed when inserting/replacing an audio asset.
a provider for the category that is displayed when inserting a text asset.
a provider for the category that is displayed when inserting/replacing a shape asset.
a provider for the category that is displayed when inserting/replacing a sticker asset.
a provider for the category that is displayed when inserting an overlay.
a provider for the category that is displayed when inserting a clip.
a provider for the category that is displayed when inserting stickers and shapes.