This site has been archived and remains strictly as a historical reference for developers who actively maintain apps built using the legacy Google VR SDK, which was last updated in 2019 and is no longer receiving updates.
  • All developers actively developing experiences for Google Cardboard should use the new open source Cardboard SDKs for iOS, Android NDK, and Unity XR Plugin. These new SDKs offer streamlined APIs, improved device compatibility, and built-in viewer profile QR code scanning.
  • The Daydream View VR headset is no longer available for purchase as of October 15, 2019. Existing apps on supported devices are unaffected for users who previously installed those applications. It is no longer possible to opt-in to Daydream distribution via Google Play.
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.