mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-05 16:35:33 +00:00
37 lines
711 B
Markdown
37 lines
711 B
Markdown
---
|
|
title: Manager.switchToNextKeyboard()
|
|
---
|
|
|
|
## Summary
|
|
|
|
The **`switchToNextKeyboard()`** method switches to the next keyboard.
|
|
|
|
## Syntax
|
|
|
|
``` swift
|
|
Manager.switchToNextKeyboard()
|
|
```
|
|
|
|
### Returns
|
|
|
|
Returns the index of the newly selected keyboard. If there's no keyboard to switch to, returns `nil`.
|
|
|
|
## Description
|
|
|
|
Use this method to switch to next keyboard in the keyboards list. If the
|
|
next keyboard does not exists, then it loads the first keyboard in the
|
|
keyboards list.
|
|
|
|
## Examples
|
|
|
|
### Example: Using `switchToNextKeyboard()`
|
|
|
|
The following script illustrates the use of `switchToNextKeyboard()`:
|
|
|
|
``` swift
|
|
Manager.shared.switchToNextKeyboard()
|
|
```
|
|
|
|
## See also
|
|
|
|
- [`setKeyboard()`](setKeyboard)
|