HKUI
@objc
public class HKUI : NSObject
UI settings object
-
an array of language names, in the appropriate language, for display
Declaration
Swift
@objc public static var languageNames: [String] -
an array of standard language codes
Declaration
Swift
@objc public static var languageCodes: [String] -
top or center color
Declaration
Swift
@objc public var topColor: UIColor -
bottom or outer color
Declaration
Swift
@objc public var bottomColor: UIColor -
background type .radial or .linear
Declaration
Swift
@objc public var bgType: BackgroundOptions -
color positions for top and bottom as percentage
Declaration
Swift
@objc public var colorStops: [Double] -
A Boolean indicating if there is supposed to be a visible playPause button in the module
Declaration
Swift
@objc public var hasPlayPause: Bool -
A Boolean indicating if there is supposed to be a visible timeline scrubber in the module
Declaration
Swift
@objc public var hasScrubber: Bool -
Declaration
Swift
@objc public static func languageCode() -> StringReturn Value
the current language code
-
Set any UI parameter to true or false
Declaration
Swift
@objc public func setOption(option: HumanUIOptions, value: Bool)Parameters
optionHumanUIOption type to set
valuetrue or false
-
Preset the background style with two specified colors
Declaration
Swift
@objc public func presetBackgroundColor(top: UIColor, bottom: UIColor, type: BackgroundOptions = .radial)Parameters
topPrimary color
bottomSecondary color
bgType(optional) Background style (BackgroundOptions.radial or BackgroundOptions.linear, default is .radial)
-
Change the background style with two specified colors
Declaration
Swift
@objc public func setBackgroundColor(top: UIColor, bottom: UIColor, type: BackgroundOptions = .radial)Parameters
topPrimary color
bottomSecondary color
bgType(optional) Background style (BackgroundOptions.radial or BackgroundOptions.linear, default is .radial)
View on GitHub
HKUI Class Reference