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: BlazeObjectPositioningThe position of the event time element Relative To The Image within the widget item.
isVisible
var isVisible: BoolWhether the event time element is visible.
insets
var insets: NSDirectionalEdgeInsetsThe insets of the event time element relative to the widget item container.
contentPadding
var contentPadding: NSDirectionalEdgeInsetsThe 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 oldericon: UIImage?property is deprecated — useiconStyleinstead.
streamStates
var streamStates: BlazeWidgetItemEventTimeElementStreamStatesStyleThe 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).
Updated 11 days ago
