GuidesAPI ReferenceRelease Notes
HomeLog InHome
Guides

BlazeWidgetItemEventTimeElementStyle - Android

BlazeWidgetItemEventTimeElementStyle configures the event time element of a widget item — the start-time text shown on live-stream cards (for example, the scheduled start time of an upcoming stream). It is available on BlazeWidgetItemStyle.eventTime.

By default the event time is shown only for upcoming streams and is hidden once a stream goes live or ends. See Live streaming.

Properties

isVisible

var isVisible: Boolean

Whether the event time element is visible.

position

var position: BlazeObjectPositioning

The position of the element relative to the image within the widget item. See BlazeObjectPositioning.

margins

var margins: BlazeInsets

The margins of the element relative to the widget item container.

padding

var padding: BlazeInsets

The padding between the event time text and its own container.

icon

var icon: BlazeWidgetItemEventTimeElementIconStyle?

An optional icon shown inside the element. BlazeWidgetItemEventTimeElementIconStyle exposes:

  • iconResId — the drawable resource of the icon.
  • iconPositioning — the icon alignment within the element (START).
  • iconTint — the icon tint. If null, the icon inherits the element's text color.

streamStates

var streamStates: BlazeWidgetItemEventTimeElementStreamStatesStyle

The per-stream-state styling for the event time. BlazeWidgetItemEventTimeElementStreamStatesStyle groups three BlazeWidgetItemEventTimeElementStateStyle objects:

  • upcomingStreamState — while a stream is scheduled but not started (visible by default).
  • liveStreamState — while a stream is broadcasting (hidden by default).
  • endedStreamState — after a stream ends (hidden by default).

Did this page help you?