GuidesAPI ReferenceRelease Notes
HomeLog InHome
Guides

Widget item text placement (title and subtitle)

Widgets include primary and secondary text placeholders that are populated from the content item’s metadata. In the SDK, these placeholders are referred to as Title and Subtitle, and they are configured using BlazeVideosPlayerHeadingTextStyle.

For each placeholder, you can choose whether to display the content item’s title or subtitle, giving you control over which text appears in each location.

The available placeholders vary by widget type, as shown in the table below. The exact placement of each placeholder within a widget is controlled using WidgetItemTitle.position().

Example - title and subtitle in a Moment


Widget typeTitle (primary) placeholderSubtitle (secondary) placeholder
MomentsYY
StoriesYN
VideosYN

WidgetItemTitle class

Use the WidgetItemTitle class to customize the properties listed.

NameDescriptionTypeDefault value
positionTitle positionBlazeObjectPositioningBottom center
insetsInsetsInsetsZero
isVisibleVisibility of titleBooltrue
unreadStyleUnread title styleWidgetItemTitleStyleDefault settings
readStyleRead title styleWidgetItemTitleStyleDefault settings

Default title styles

Style nameFontLetter spacingText colorLine heightNumber of linesAlignment
unreadStylesystemFont(12)0.black02.center
readStylesystemFont(12)0.black02.center


Did this page help you?