BlazeWidgetItemStatusIndicatorStyle - Android
BlazeWidgetItemStatusIndicatorStyle is responsible for managing the style and positioning of a status indicator within a widget item. It provides options for live unread, live read, unread, and read states (Stories and Moments), as well as the live-stream states (upcoming, live, ended) via streamStates.
Properties
position
var position: BlazeObjectPositioningThe position of the status indicator Relative To The Image within the widget item.
isVisible
var isVisible: BooleanA Boolean value that determines whether the status indicator is visible.
Setting to false will hide all the status indicators for the widget item.
margins
var margins: BlazeInsetsA BlazeInsets value that defines the margins for the status indicator related to the widget item container.
padding
var padding: BlazeInsetsAn BlazeInsets value that defines the padding for the status title to his own container.
liveUnreadState
var liveUnreadState: BlazeWidgetItemStatusIndicatorStateStyleA BlazeWidgetItemStatusIndicatorStateStyle object that defines the style of the status indicator for live unread items.
liveReadState
var liveReadState: BlazeWidgetItemStatusIndicatorStateStyleA BlazeWidgetItemStatusIndicatorStateStyle object that defines the style of the status indicator for live read items.
unreadReadState
var unreadState: BlazeWidgetItemStatusIndicatorStateStyleA BlazeWidgetItemStatusIndicatorStateStyle object that defines the style of the status indicator for unread items.
readState
var readState: BlazeWidgetItemStatusIndicatorStateStyleA BlazeWidgetItemStatusIndicatorStateStyle object that defines the style of the status indicator for read items.
streamStates
var streamStates: BlazeWidgetItemStatusIndicatorStreamStatesStyleDefines the status-indicator chip shown on live-stream widget items, with one style per stream state. BlazeWidgetItemStatusIndicatorStreamStatesStyle groups three BlazeWidgetItemStatusIndicatorStateStyle objects:
upcomingStreamState— shown while a stream is scheduled but has not started.liveStreamState— shown while a stream is broadcasting.endedStreamState— shown once a stream has finished.
Default values
| State | text | backgroundColor | text color | text size | cornerRadius |
|---|---|---|---|---|---|
liveStreamState | LIVE | #FF3131 | #F0F0F0 | 12sp | 10dp |
upcomingStreamState | UPCOMING | #FFFFFF | #4E5053 | 12sp | 10dp |
endedStreamState | ENDED | #404040 | #F0F0F0 | 12sp | 10dp |
streamStatesstyles live-stream video items. TheliveUnreadState/liveReadState/unreadState/readStateproperties above apply to Stories and Moments read status. See Live streaming.
Updated 11 days ago
