This is the core class for the creation of your own custom keyboard.
KeyboardConfiguration instance will be called from KeyboardViewController.
The input method class that can be extended to configure the keyboard behaviour, respond to keyboard requests, and listen to keyboard events.
Notes:
class KeyboardViewController: FleksyKeyboardSDK.FKKeyboardViewController {
/// - Important: Every time the keyboard appears it calls in this order: ``viewDidLoad`` -> ``viewWillAppear`` -> ``viewDidAppear``.
/// Keyboard extensions don't reuse the view, which means that in every appearance we recreate what's inside ``viewDidLoad``.
/// This behaviour is different from the normal iOS ViewController.
override func viewDidLoad() {
super.viewDidLoad()
}
override func createConfiguration() -> KeyboardConfiguration {
// Add all your custom configuration here.
// Add your license key and secret here.
let config = KeyboardConfiguration()
return config
}
}
Event | Description |
---|---|
createConfiguration | Create startup configuration. |
override func createConfiguration() -> KeyboardConfiguration {
let config = KeyboardConfiguration()
return config
}
Notes:
-viewDidLoad
is invoked. Initialize any dependency needed by this method in -viewDidLoad
before calling super ’s implementation.