Keyboard Support

Contact and Search

Keyman.com Homepage

Header bottom

Keyman.com

Other versions
Version 16.0 (current version)Version 15.0Version 14.0Version 13.0Version 12.0Version 11.0Version 10.0

On this page

Manager.downloadKeyboard()

Summary

The downloadKeyboard() method installs keyboards for active use.

Syntax

Manager.downloadKeyboard(withID: String, languageID: String, isUpdate: Bool, fetchRepositoryIfNeeded: Bool = true)

Parameters

withID
ID of the keyboard.
languageID
ID of the language.
isUpdate
Boolean to keep the keyboard files on failure.
fetchRepositoryIfNeeded
Fetch the list of keyboards from the API if necessary.

Description

This syntax can be used to asynchronously fetch the keyboard files.

Example 1: Using downloadKeyboard()

The following script illustrates the use of downloadKeyboard():

Manager.shared.downloadKeyboard(withID: keyboard.id, languageID: keyboard.languageID, isUpdate: false)


Syntax

Manager.downloadKeyboard(url: URL)

Parameters

url
URL to a .KMP package containing the keyboard.

Description

This syntax can be used to asynchronously fetch the keyboard files.

Example 2: Using downloadKeyboard()

The following script illustrates the use of downloadKeyboard():

let url = URL(string: "https://example.com/keyboard.kmp")
Manager.shared.downloadKeyboard(from: url!)