GuidesAPI ReferenceRelease Notes
HomeLog InHome
Guides

BlazeWidgetItemStyle - Android

The BlazeWidgetItemStyle class is part of the BlazeSDK and is responsible for defining the styling properties of the items within a Widget. This includes properties such as title style, status indicator style, background color, corner radius, and image style.

Properties

title: BlazeWidgetItemTitleStyle,
statusIndicator: BlazeWidgetItemStatusIndicatorStyle,
backgroundColor: Int,
padding: BlazeInsets,
cornerRadius: Float,
cornerRadiusRatio: Float?,
image: BlazeWidgetItemImageStyle,
badge: BlazeWidgetItemBadgeStyle,
durationElement: BlazeWidgetItemDurationElementStyle,
eventTime: BlazeWidgetItemEventTimeElementStyle

title

The title configuration of the widget item.

statusIndicator

The status indicator configuration of the widget item.

backgroundColor

The background color of the widget item.

padding

The padding of the widget item

cornerRadius

The corner radius of the widget item.

cornerRadiusRatio

The corner radius ratio is a value between 0.0 and 1.0, which computes the final corner radius for the widget item. Overrides corner radius property. For example, a value of 0.5 on a 1:1 width/height widget item will result in a perfect circle style for the widget item.

image

The image configuration of the widget item.

badge

The badge configuration of the widget item.

durationElement

The duration configuration of the widget item.

Note: This property is only applicable for Videos and Moments player type.

eventTime

The event time element of the widget item — the start-time text shown on live-stream cards (upcoming streams by default). See BlazeWidgetItemEventTimeElementStyle.


Did this page help you?