the associated player of this UI
the UI to add to the player
Optional
uiconfig: UIConfigoptional UI configuration
Creates a UI manager with a list of UI variants that will be dynamically selected and switched according to the context of the UI.
Every time the UI context changes, the conditions of the UI variants will be sequentially resolved and the first UI, whose condition evaluates to true, will be selected and displayed. The last variant in the list might omit the condition resolver and will be selected as default/fallback UI when all other conditions fail. If there is no fallback UI and all conditions fail, no UI will be displayed.
The current active UIInstanceManager.
Fires after the UIManager has switched to a different UI variant.
Fires just before UI variants are about to be resolved and the UI variant is possibly switched. It is fired when the switch is triggered from an automatic switch and when calling resolveUiVariant. Can be used to modify the UIConditionContext before resolving is done.
Adds a marker to the timeline. Does not check for duplicates/overlaps at the time
.
Returns the list of all added markers in undefined order.
Removes a marker from the timeline (by reference) and returns true
if the marker has
been part of the timeline and successfully removed, or false
if the marker could not
be found and thus not removed.
Triggers a UI variant switch as triggered by events when automatic switching is enabled. It allows to overwrite properties of the UIConditionContext.
an optional set of properties that overwrite properties of the automatically determined context
Optional
onShow: ((context: UIConditionContext) => void)a callback that is executed just before the new UI variant is shown (if a switch is happening)
Switches to a UI variant from the list returned by getUiVariants.
the UI variant to switch to
Optional
onShow: (() => void)a callback that is executed just before the new UI variant is shown
Static
localizeExposes i18n.getLocalizer() function
Static
setProvide configuration to support Custom UI languages default language: 'en'
Creates a UI manager with a single UI variant that will be permanently shown.