November 6, 2019 update:
  • There's a new open source Cardboard SDK for iOS and Android NDK that offers a streamlined API, improved device compatibility, and built-in viewer profile QR code scanning. A corresponding Unity package (SDK) is planned for a future release. We recommend that all developers actively building for Google Cardboard migrate (iOS, Android NDK) to the new Cardboard SDK.
October 15, 2019 update:
  • The Daydream View VR headset is no longer available for purchase. However, you can continue to use the existing Google VR SDK to update and distribute your apps to the Google Play Store, and make them available to users in the Daydream app.

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.