IStyleFactory
Style download tool interface.
Methods
func setAttribute(name: String, value: AttributeValue) -> Self
Parameters
func loadDefault() -> Future<Style>
Getting a preset style.
func loadFile(path: String) -> Future<Style>
Load a custom style from a specified file on the absolute path.
Parameters
path
func loadFile(url: URL) -> Future<Style>
Load a custom style from a specified file by URL. The URL must follow the “file:” pattern, otherwise an error will be returned.
Parameters
url
URL