cohtml.VirtualKeyboard

Abstract class that subscribes to the TextInputHandler callbacks of a CohtmlView. The callbacks are triggered when an input field in the UI is focused or unfocused.

Inherits from MonoBehaviour

Inherited by cohtml.CohtmlTouchKeyboard

Public Functions

Name
virtual voidStart()

Protected Functions

Name
virtual abstract voidOnSetKeyboardOptionsCallback() =0
virtual abstract voidOnFocusCallback(string content) =0
virtual stringOnBlurCallback()
voidRefreshText(string text)

Public Properties

Name
CohtmlViewViewComponent
Returns the CohtmlView component.

Protected Attributes

Name
CohtmlViewm_View

Public Functions Documentation

function Start

virtual void Start()

Reimplemented by: cohtml.CohtmlTouchKeyboard.Start

Protected Functions Documentation

function OnSetKeyboardOptionsCallback

virtual abstract void OnSetKeyboardOptionsCallback() =0

Reimplemented by: cohtml.CohtmlTouchKeyboard.OnSetKeyboardOptionsCallback

function OnFocusCallback

virtual abstract void OnFocusCallback(
    string content
) =0

Reimplemented by: cohtml.CohtmlTouchKeyboard.OnFocusCallback

function OnBlurCallback

virtual string OnBlurCallback()

Reimplemented by: cohtml.CohtmlTouchKeyboard.OnBlurCallback

function RefreshText

void RefreshText(
    string text
)

Public Property Documentation

property ViewComponent

CohtmlView ViewComponent;

Returns the CohtmlView component.

Protected Attributes Documentation

variable m_View

CohtmlView m_View;