StyleConfig

@objcMembers
@objc(BMPStyleConfig)
public final class StyleConfig : NSObject

Contains config values which can be used to alter the visual presentation and behaviour of the player UI.

  • Sets if the the UI should be enabled or not. Default value is true.

    Declaration

    Swift

    public var isUiEnabled: Bool
  • Set which user interface type should be used. Default value is UserInterfaceType.bitmovin on iOS and UserInterfaceType.system on tvOS. This setting only applies if StyleConfig#isUiEnabled is set to true.

    Declaration

    Swift

    public var userInterfaceType: UserInterfaceType
  • Set the CSS file that will be used for the UI. The default CSS file will be completely replaced by the CSS file set with this property.

    Declaration

    Swift

    @available(tvOS, unavailable)
    public var playerUiCss: URL
  • Set a CSS file which contains supplemental styles for the player UI. These styles will be added to the default CSS file or the CSS file set with StyleConfig#playerUiCss.

    Declaration

    Swift

    @available(tvOS, unavailable)
    public var supplementalPlayerUiCss: URL?
  • Sets the JS file that will be used for the UI. The default JS file will be completely replaced by the JS file set with this property.

    Declaration

    Swift

    @available(tvOS, unavailable)
    public var playerUiJs: URL
  • Determines how the video content is scaled or stretched within the parent container’s bounds. Possible values are defined in ScalingMode. Default value is ScalingMode.fit.

    Declaration

    Swift

    public var scalingMode: ScalingMode
  • An optional config object, containing config values which apply to the selected user interface type.

    Declaration

    Swift

    public var userInterfaceConfig: UserInterfaceConfig?
  • Declaration

    Swift

    override public init()