New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Defines the fluent API for configuring the Kendo SpeechToTextButton for ASP.NET MVC events.

Definition

Constructors

Initializes a new instance of the SpeechToTextButton class.

C#
public SpeechToTextButtonEventBuilder(IDictionary<string, object> events)
Parameters:eventsIDictionary<string, object>

The client events.

Methods

Defines the handler of the Click client-side event. Fires when the Button is clicked with the mouse, touched on a touch device, or ENTER (or SPACE) is pressed while the Button is focused.

C#
public SpeechToTextButtonEventBuilder Click(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the Click event.

Returns:

SpeechToTextButtonEventBuilder

Defines the handler of the End client-side event. Fires when the speech recognition service has disconnected.

C#
public SpeechToTextButtonEventBuilder End(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the End event.

Returns:

SpeechToTextButtonEventBuilder

Defines the handler of the Error client-side event. Fires when a speech recognition error occurs.

C#
public SpeechToTextButtonEventBuilder Error(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the Error event.

Returns:

SpeechToTextButtonEventBuilder

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the Button is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public SpeechToTextButtonEventBuilder KendoKeydown(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the KendoKeydown event.

Returns:

SpeechToTextButtonEventBuilder

Defines the handler of the Result client-side event. Fires when the speech recognition service returns a result - a word or phrase has been positively recognized.

C#
public SpeechToTextButtonEventBuilder Result(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the Result event.

Returns:

SpeechToTextButtonEventBuilder

Defines the handler of the Start client-side event. Fires when the speech recognition service has begun listening to incoming audio.

C#
public SpeechToTextButtonEventBuilder Start(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the Start event.

Returns:

SpeechToTextButtonEventBuilder