jovo-plugin-class-handler
Version:
Jovo plugin that allows using classes for defining handlers.
22 lines (21 loc) • 936 B
TypeScript
import { AudioData, Jovo, SpeechBuilder } from 'jovo-core';
/**
* BaseHandler, this is just used to provide access to method/properties of the Jovo object via `this`.
* All method implementations are simply there to satisfy the inheritance. The correct values are injected during the execution of the @Intent-method.
*/
export declare class BaseHandler extends Jovo {
isNewSession(): boolean;
hasAudioInterface(): boolean;
hasScreenInterface(): boolean;
hasVideoInterface(): boolean;
getSpeechBuilder(): SpeechBuilder | undefined;
speechBuilder(): SpeechBuilder | undefined;
getDeviceId(): string | undefined;
getRawText(): string | undefined;
getTimestamp(): string | undefined;
getLocale(): string | undefined;
getType(): string | undefined;
getPlatformType(): string;
getSelectedElementId(): string | undefined;
getAudioData(): AudioData | undefined;
}