AssetLibrary

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

tabs

a provider for the list of categories that are displayed as tabs in the asset library.

elements

a provider for the category that is displaying elements tab.

images

a provider for the category that is displayed when inserting/replacing an image asset.

videos

a provider for the category that is displayed when inserting/replacing a video asset.

audios

a provider for the category that is displayed when inserting/replacing an audio asset.

text

a provider for the category that is displayed when inserting a text asset.

shapes

a provider for the category that is displayed when inserting/replacing a shape asset.

stickers

a provider for the category that is displayed when inserting/replacing a sticker asset.

overlays

a provider for the category that is displayed when inserting an overlay.

clips

a provider for the category that is displayed when inserting a clip.

stickersAndShapes

a provider for the category that is displayed when inserting stickers and shapes.

Constructors

Link copied to clipboard
constructor(tabs: () -> List<LibraryCategory>, images: () -> LibraryCategory = { LibraryCategory.Images }, videos: () -> LibraryCategory = { LibraryCategory.Video }, gallery: () -> LibraryCategory = { LibraryCategory.getGallery(includeAVResources = false) }, audios: () -> LibraryCategory = { LibraryCategory.Audio }, text: () -> LibraryCategory = { LibraryCategory.Text }, shapes: () -> LibraryCategory = { LibraryCategory.Shapes }, stickers: () -> LibraryCategory = { LibraryCategory.Stickers }, overlays: () -> LibraryCategory = { createOverlaysCategory( videos = videos().withoutSystemGallerySections(), images = images().withoutSystemGallerySections(), ) }, clips: () -> LibraryCategory = { createClipsCategory( videos = videos().withoutSystemGallerySections(), images = images().withoutSystemGallerySections(), ) }, elements: () -> LibraryCategory = { LibraryCategory.getElements( images = images(), videos = videos(), audios = audios(), text = text(), shapes = shapes(), stickers = stickers(), ) }, stickersAndShapes: () -> LibraryCategory = { createStickersAndShapesCategory( stickers = stickers(), shapes = shapes(), ) })

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Predefined tabs that can be displayed in the asset library.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard