Constructors
Properties
off
off: (<TData>(type: string,
listener?: ((event: TData) => void)) => void) Type declaration
- <TData>(type, listener?): void
Parameters
- type: string
Optional
listener: ((event: TData) => void)- (event): void
Returns void
Returns void
on
Type declaration
- <TData, TType>(type, listener, thisArg?): void
Type Parameters
- TData = unknown
- TType extends string = string
Returns void
once
Type declaration
- <TData, TType>(type, listener, thisArg?): void
Type Parameters
- TData = unknown
- TType extends string = string
Returns void
trigger
trigger: (<TData>(event: unknown,
eventData?: TData,
extras?: { bubbles?: boolean; external?: boolean; }) => void) Type declaration
- <TData>(event, eventData?, extras?): void
Parameters
- event: unknown
Optional
eventData: TDataOptional
extras: {
bubbles?: boolean;
external?: boolean;
}Optional
bubbles?: boolean
Optional
external?: boolean
Returns void
triggerXAPI
triggerXAPI: ((verb: XAPIVerb,
extra: unknown) => void) Methods
createXAPIEventTemplate
- createXAPIEventTemplate<TVerb>(verb, extra): XAPIEvent
Parameters
- verb: TVerb
- extra: unknown
Remove event listener If no listener is specified, all listeners will be removed