SystemUiApi
@objc(BMPSystemUiApi)
public protocol SystemUiApi
The SystemUiApi for interactions regarding the system UI. Using this API just has an effect if userInterfaceType
in StyleConfig is set to .system. This is the default value on tvOS, on iOS it has to be set specifically.
-
An array of actions and menus to display with the default player controls. Contains the currently displayed items. Items can be added and removed dynamically at any time.
The initial state can be configured using
SystemUserInterfaceConfig.transportBarCustomMenuItemsUse this property to display custom pop-up menus in transport bar. This property only supports menu elements of type
UIActionandUIMenu, and supports displaying inline one level of submenus.Declaration
Swift
@available(tvOS 15.0, *) @available(iOS, unavailable) var transportBarCustomMenuItems: [UIMenuElement] { get set } -
An array of actions to present in the Info content view. Default value is a single action that plays the current media from the beginning when tapped.
The Info content view can display up to two custom action controls along its trailing edge. Contains the currently presented actions. The default value (if present) can be replaced, an additional action can be added, or set this property value to an empty array to display no actions.
Declaration
Swift
@available(tvOS 15.0, *) @available(iOS, unavailable) var infoViewActions: [UIAction] { get set } -
An array of view controllers to display as content tabs in the player user interface. A default Info tab is displayed as the first content tab if
SourceConfig.titleandSourceConfig.sourceDescriptionare notnil. This default tab cannot be modified.If
SystemUserInterfaceConfig.showInfoViewsis set tofalse, no content tabs are displayed.Custom tabs can be defined by creating subclasses of
UIViewControllerand appending them to this array.Important
Initialize the custom view controller’s
titleproperty value before setting it on this property. The system uses the custom view controller’stitleas the tab title.Important
The view controller whose view has the greatest height determines the height for all tab’s content views. Set the height of content views consistently using
preferredContentSizeto simplify layout, or define appropriate auto layout constraints on their views.Declaration
Swift
@available(tvOS 15.0, *) @available(iOS, unavailable) var customInfoViewControllers: [UIViewController] { get set }
SystemUiApi Protocol Reference