Builder

class Builder

Functions

build
Link copied to clipboard
fun build(): MomentsIconStylingConfig
setAnalyticsDialogHeartIcon
Link copied to clipboard

Sets custom image to analytics dialog heart icon. Max size of corresponding view is 16x16px. Scale type of the view is ScaleType.FIT_CENTER

setCameraBackIcon
Link copied to clipboard
fun setCameraBackIcon(icon: Drawable?): MomentsIconStylingConfig.Builder

Sets custom image to camera back icon. Max size of corresponding view is 36x36px. Scale type of the view is ScaleType.FIT_CENTER

setCameraFlashIcon
Link copied to clipboard
fun setCameraFlashIcon(flashOffIcon: Drawable?, flashAutoIcon: Drawable?, flashOnIcon: Drawable?): MomentsIconStylingConfig.Builder

Sets custom image to camera flash icon. Max size of corresponding view is 40x40px. Scale type of the view is ScaleType.FIT_CENTER

setCameraGalleryIcon
Link copied to clipboard
fun setCameraGalleryIcon(icon: Drawable?): MomentsIconStylingConfig.Builder

Sets custom image to camera gallery icon. Max size of corresponding view is 40x40px. Scale type of the view is ScaleType.FIT_CENTER

setCameraSwitchIcon
Link copied to clipboard
fun setCameraSwitchIcon(icon: Drawable?): MomentsIconStylingConfig.Builder

Sets custom image to camera switch icon. Max size of corresponding view is 40x40px. Scale type of the view is ScaleType.FIT_CENTER

setGalleryCloseIcon
Link copied to clipboard
fun setGalleryCloseIcon(icon: Drawable?): MomentsIconStylingConfig.Builder

Sets custom image to gallery close icon. Max size of corresponding view is 24x24px. Scale type of the view is ScaleType.FIT_CENTER

setGalleryContinueIcon
Link copied to clipboard
fun setGalleryContinueIcon(icon: Drawable?): MomentsIconStylingConfig.Builder

Sets custom image to gallery continue icon. Max size of corresponding view is 20x20px. Scale type of the view is ScaleType.FIT_CENTER

setGalleryDropdownIcon
Link copied to clipboard
fun setGalleryDropdownIcon(icon: Drawable?): MomentsIconStylingConfig.Builder

Sets custom image to gallery dropdown icon. Max size of corresponding view is 16x16px. Scale type of the view is ScaleType.FIT_CENTER

setStudioAddLinkIcon
Link copied to clipboard
fun setStudioAddLinkIcon(icon: Drawable?): MomentsIconStylingConfig.Builder

Sets custom image to add link icon. Max size of corresponding view is 40x40px. Scale type of the view is ScaleType.FIT_CENTER

setStudioAddTextIcon
Link copied to clipboard
fun setStudioAddTextIcon(icon: Drawable?): MomentsIconStylingConfig.Builder

Sets custom image to add text icon. Max size of corresponding view is 40x40px. Scale type of the view is ScaleType.FIT_CENTER

setStudioBackIcon
Link copied to clipboard
fun setStudioBackIcon(icon: Drawable?): MomentsIconStylingConfig.Builder

Sets custom image to back icon. Max size of corresponding view is 36x36px. Scale type of the view is ScaleType.FIT_CENTER

setStudioMuteIcon
Link copied to clipboard
fun setStudioMuteIcon(muteIcon: Drawable?, unmuteIcon: Drawable?): MomentsIconStylingConfig.Builder

Sets custom image to mute icon. Max size of corresponding view is 40x40px. Scale type of the view is ScaleType.FIT_CENTER

setStudioShareIcon
Link copied to clipboard
fun setStudioShareIcon(icon: Drawable?): MomentsIconStylingConfig.Builder

Sets custom image to share icon. Max size of corresponding view is 20x20px. Scale type of the view is ScaleType.FIT_CENTER

setStudioTextHighlightIcon
Link copied to clipboard
fun setStudioTextHighlightIcon(highlightOnIcon: Drawable?, highlightOffIcon: Drawable?): MomentsIconStylingConfig.Builder

Sets custom image to text highlight icon. Max size of corresponding view is 40x40px. Scale type of the view is ScaleType.FIT_CENTER

setStudioTrashIcon
Link copied to clipboard
fun setStudioTrashIcon(trashIcon: Drawable?, trashIconBackground: Drawable?): MomentsIconStylingConfig.Builder

Sets custom image to trash icon and its background. Max size of corresponding view is 20x20px. Scale type of the view is ScaleType.FIT_CENTER

setUserStoriesCloseIcon
Link copied to clipboard
fun setUserStoriesCloseIcon(icon: Drawable?): MomentsIconStylingConfig.Builder

Sets custom image to user stories close icon. Max size of corresponding view is 32x32px. Scale type of the view is ScaleType.FIT_CENTER

setUserStoriesLikeIcon
Link copied to clipboard
fun setUserStoriesLikeIcon(icon: Drawable?): MomentsIconStylingConfig.Builder

Sets custom image to like icon. Max size of corresponding view is 20x20px. Scale type of the view is ScaleType.FIT_CENTER

setUserStoriesOptionsIcon
Link copied to clipboard

Sets custom image to user stories menu icon. Max size of corresponding view is 32x32px. Scale type of the view is ScaleType.FIT_CENTER

setUserStoriesUploadingIcon
Link copied to clipboard

Sets custom image to uploading icon. Max size of corresponding view is 24x24px. Scale type of the view is ScaleType.FIT_CENTER Moments uses tag of xml to handle animation of this icon.

setUserStoriesViewCountIcon
Link copied to clipboard

Sets custom image to view icon. Max size of corresponding view is 20x20px. Scale type of the view is ScaleType.FIT_CENTER