# GvrKeyboardDelegateBase Class Reference

# GvrKeyboardDelegateBase

**This is an abstract class.**   

An abstract interface for `https://developers.google.com/vr/reference/unity/class/GvrKeyboard#classGvrKeyboard` 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 ||
|---|---|
| `https://developers.google.com/vr/reference/unity/class/GvrKeyboardDelegateBase#classGvrKeyboardDelegateBase_1a253f1df1bccfd196d29e13a97c957817` | `abstract EventHandler` Event for the keyboard being hidden. |
| `https://developers.google.com/vr/reference/unity/class/GvrKeyboardDelegateBase#classGvrKeyboardDelegateBase_1a9f6a480c0b48120869f6d293809bc887` | `abstract EventHandler` Event for the keyboard being shown. |

| ### Public functions ||
|---|---|
| `https://developers.google.com/vr/reference/unity/class/GvrKeyboardDelegateBase#classGvrKeyboardDelegateBase_1a640b83fd9abcbd4ead9e1628fcb8c8ff(string edit_text)` | `virtual abstract void` Called when the ENTER key is pressed on the keyboard. |
| `https://developers.google.com/vr/reference/unity/class/GvrKeyboardDelegateBase#classGvrKeyboardDelegateBase_1a39b8e330020e3037302490566ed0fa01(GvrKeyboardError errorCode)` | `virtual abstract void` Called when there is an error with the keyboard. |
| `https://developers.google.com/vr/reference/unity/class/GvrKeyboardDelegateBase#classGvrKeyboardDelegateBase_1a581dc5e101f512ad3b5d290a924a4764()` | `virtual abstract void` Called to hide the keyboard. |
| `https://developers.google.com/vr/reference/unity/class/GvrKeyboardDelegateBase#classGvrKeyboardDelegateBase_1a923c16506e574a4cb327618c56ef184f()` | `virtual abstract void` Called to show the keyboard. |
| `https://developers.google.com/vr/reference/unity/class/GvrKeyboardDelegateBase#classGvrKeyboardDelegateBase_1ae8fe34303a4e6d5530b24fe0ad701daa(string edit_text)` | `virtual abstract void` Called to update the keyboard. |

## Events

### KeyboardHidden

```c#
abstract EventHandler KeyboardHidden
```
Event for the keyboard being hidden.

### KeyboardShown

```c#
abstract EventHandler KeyboardShown
```
Event for the keyboard being shown.

## Public functions

### OnKeyboardEnterPressed

```c#
virtual abstract void OnKeyboardEnterPressed(
  string edit_text
)
```
Called when the ENTER key is pressed on the keyboard.

<br />

| Details ||
|---|---|
| Parameters | |---|---| | `edit_text` | The current text for the keyboard. | |

### OnKeyboardError

```c#
virtual abstract void OnKeyboardError(
  GvrKeyboardError errorCode
)
```
Called when there is an error with the keyboard.

<br />

| Details ||
|---|---|
| Parameters | |---|---| | `errorCode` | The code of the error encountered. | |

### OnKeyboardHide

```c#
virtual abstract void OnKeyboardHide()
```
Called to hide the keyboard.

### OnKeyboardShow

```c#
virtual abstract void OnKeyboardShow()
```
Called to show the keyboard.

### OnKeyboardUpdate

```c#
virtual abstract void OnKeyboardUpdate(
  string edit_text
)
```
Called to update the keyboard.

<br />

| Details ||
|---|---|
| Parameters | |---|---| | `edit_text` | The current text for the keyboard. | |