GuidesAPI ReferenceRelease Notes
HomeLog InHome
Guides

BlazeWidgetItemEventTimeElementStyle - iOS

The BlazeWidgetItemEventTimeElementStyle struct 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.eventTimeElement.

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

position

var position: BlazeObjectPositioning

The position of the event time element Relative To The Image within the widget item.

isVisible

var isVisible: Bool

Whether the event time element is visible.

insets

var insets: NSDirectionalEdgeInsets

The insets of the event time element relative to the widget item container.

contentPadding

var contentPadding: NSDirectionalEdgeInsets

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

iconStyle

var iconStyle: BlazeWidgetTimeElementIconStyle?

An optional icon shown alongside the event time text. BlazeWidgetTimeElementIconStyle exposes the icon image, its tintColor (when nil, the icon inherits the text color), and its position.

📘

The older icon: UIImage? property is deprecated — use iconStyle instead.

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?