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.0Version 2.0 (home page)

On this page

Manager.downloadKeyboard()

Summary

The downloadKeyboard() method sets the keyboard to be used.

Syntax

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

Parameters

keyboardID
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 JSON description of 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.json")
Manager.shared.downloadKeyboard(from: url!)