This site has been permanently archived. The content on this site was last updated in 2019.
Stay organized with collections
Save and categorize content based on your preferences.
GvrKeyboardDelegateBase
This is an abstract class.An abstract interface for GvrKeyboard
methods.
Summary
An abstract class instead of an interface so that it can be exposed in Unity's editor.
It inherits from MonoBehaviour
so that it can be directly used as a game object.
Inheritance
Inherits from: MonoBehaviour
Events
|
KeyboardHidden
|
abstract EventHandler
Event for the keyboard being hidden.
|
KeyboardShown
|
abstract EventHandler
Event for the keyboard being shown.
|
Public functions
|
OnKeyboardEnterPressed(string edit_text)
|
virtual abstract void
Called when the ENTER key is pressed on the keyboard.
|
OnKeyboardError(GvrKeyboardError errorCode)
|
virtual abstract void
Called when there is an error with the keyboard.
|
OnKeyboardHide()
|
virtual abstract void
Called to hide the keyboard.
|
OnKeyboardShow()
|
virtual abstract void
Called to show the keyboard.
|
OnKeyboardUpdate(string edit_text)
|
virtual abstract void
Called to update the keyboard.
|
Events
KeyboardHidden
abstract EventHandler KeyboardHidden
Event for the keyboard being hidden.
KeyboardShown
abstract EventHandler KeyboardShown
Event for the keyboard being shown.
Public functions
OnKeyboardEnterPressed
virtual abstract void OnKeyboardEnterPressed(
string edit_text
)
Called when the ENTER key is pressed on the keyboard.
Details |
Parameters |
edit_text
|
The current text for the keyboard.
|
|
OnKeyboardError
virtual abstract void OnKeyboardError(
GvrKeyboardError errorCode
)
Called when there is an error with the keyboard.
Details |
Parameters |
errorCode
|
The code of the error encountered.
|
|
OnKeyboardHide
virtual abstract void OnKeyboardHide()
Called to hide the keyboard.
OnKeyboardShow
virtual abstract void OnKeyboardShow()
Called to show the keyboard.
OnKeyboardUpdate
virtual abstract void OnKeyboardUpdate(
string edit_text
)
Called to update the keyboard.
Details |
Parameters |
edit_text
|
The current text for the keyboard.
|
|
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-09 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-09 UTC."],[[["\u003cp\u003e\u003ccode\u003eGvrKeyboardDelegateBase\u003c/code\u003e is an abstract class that provides an interface for interacting with the \u003ccode\u003eGvrKeyboard\u003c/code\u003e in Unity.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits from \u003ccode\u003eMonoBehaviour\u003c/code\u003e, allowing it to be used directly as a game object and exposed in the Unity editor.\u003c/p\u003e\n"],["\u003cp\u003eThis class includes events for keyboard visibility changes (shown/hidden) and abstract functions to handle keyboard input and errors.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers need to implement the abstract functions like \u003ccode\u003eOnKeyboardEnterPressed\u003c/code\u003e, \u003ccode\u003eOnKeyboardError\u003c/code\u003e, etc.to define custom keyboard behaviors.\u003c/p\u003e\n"]]],["`GvrKeyboardDelegateBase` is an abstract class inheriting from `MonoBehaviour`, designed for the `GvrKeyboard`. It features events `KeyboardHidden` and `KeyboardShown`. Public functions include `OnKeyboardEnterPressed` (when ENTER is pressed), `OnKeyboardError` (for keyboard errors), `OnKeyboardHide` (to hide the keyboard), `OnKeyboardShow` (to display the keyboard), and `OnKeyboardUpdate` (to refresh the keyboard display) each with specific parameters related to the keyboard state and text.\n"],null,["# GvrKeyboardDelegateBase Class Reference\n\nGvrKeyboardDelegateBase\n=======================\n\n**This is an abstract class.** \n\nAn abstract interface for [GvrKeyboard](/vr/reference/unity/class/GvrKeyboard#classGvrKeyboard) methods.\n\nSummary\n-------\n\nAn abstract class instead of an interface so that it can be exposed in Unity's editor.\n\nIt inherits from `MonoBehaviour` so that it can be directly used as a game object.\n\n### Inheritance\n\nInherits from: MonoBehaviour\n\n| ### Events ||\n|------------------------------------------------------------------------------------|--------------------------------------------------------------|\n| [KeyboardHidden](#classGvrKeyboardDelegateBase_1a253f1df1bccfd196d29e13a97c957817) | `abstract EventHandler` Event for the keyboard being hidden. |\n| [KeyboardShown](#classGvrKeyboardDelegateBase_1a9f6a480c0b48120869f6d293809bc887) | `abstract EventHandler` Event for the keyboard being shown. |\n\n| ### Public functions ||\n|-------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|\n| [OnKeyboardEnterPressed](#classGvrKeyboardDelegateBase_1a640b83fd9abcbd4ead9e1628fcb8c8ff)`(string edit_text)` | `virtual abstract void` Called when the ENTER key is pressed on the keyboard. |\n| [OnKeyboardError](#classGvrKeyboardDelegateBase_1a39b8e330020e3037302490566ed0fa01)`(GvrKeyboardError errorCode)` | `virtual abstract void` Called when there is an error with the keyboard. |\n| [OnKeyboardHide](#classGvrKeyboardDelegateBase_1a581dc5e101f512ad3b5d290a924a4764)`()` | `virtual abstract void` Called to hide the keyboard. |\n| [OnKeyboardShow](#classGvrKeyboardDelegateBase_1a923c16506e574a4cb327618c56ef184f)`()` | `virtual abstract void` Called to show the keyboard. |\n| [OnKeyboardUpdate](#classGvrKeyboardDelegateBase_1ae8fe34303a4e6d5530b24fe0ad701daa)`(string edit_text)` | `virtual abstract void` Called to update the keyboard. |\n\nEvents\n------\n\n### KeyboardHidden\n\n```c#\nabstract EventHandler KeyboardHidden\n``` \nEvent for the keyboard being hidden. \n\n### KeyboardShown\n\n```c#\nabstract EventHandler KeyboardShown\n``` \nEvent for the keyboard being shown.\n\nPublic functions\n----------------\n\n### OnKeyboardEnterPressed\n\n```c#\nvirtual abstract void OnKeyboardEnterPressed(\n string edit_text\n)\n``` \nCalled when the ENTER key is pressed on the keyboard.\n\n\u003cbr /\u003e\n\n| Details ||\n|------------|-----------------------------------------------------------------------------------------------------------|\n| Parameters | |-------------|------------------------------------| | `edit_text` | The current text for the keyboard. | |\n\n### OnKeyboardError\n\n```c#\nvirtual abstract void OnKeyboardError(\n GvrKeyboardError errorCode\n)\n``` \nCalled when there is an error with the keyboard.\n\n\u003cbr /\u003e\n\n| Details ||\n|------------|-----------------------------------------------------------------------------------------------------------|\n| Parameters | |-------------|------------------------------------| | `errorCode` | The code of the error encountered. | |\n\n### OnKeyboardHide\n\n```c#\nvirtual abstract void OnKeyboardHide()\n``` \nCalled to hide the keyboard. \n\n### OnKeyboardShow\n\n```c#\nvirtual abstract void OnKeyboardShow()\n``` \nCalled to show the keyboard. \n\n### OnKeyboardUpdate\n\n```c#\nvirtual abstract void OnKeyboardUpdate(\n string edit_text\n)\n``` \nCalled to update the keyboard.\n\n\u003cbr /\u003e\n\n| Details ||\n|------------|-----------------------------------------------------------------------------------------------------------|\n| Parameters | |-------------|------------------------------------| | `edit_text` | The current text for the keyboard. | |"]]