InteractionListenerBuilder
class
InteractionListenerBuilder
sourceexport class InteractionListenerBuilder<T extends InteractionListenerType> export class InteractionListenerBuilder<T extends InteractionListenerType>constructor(data?: Partial<InteractionListenerData<T>>) constructor(data?: Partial<InteractionListenerData<T>>)| Param | Type | Required |
|---|---|---|
| | No |
setType<Type extends T>(type: Type): InteractionListenerBuilder<Type> setType<Type extends T>(type: Type): InteractionListenerBuilder<Type>| Param | Type | Required |
|---|---|---|
| | Yes |
Returns:
InteractionListenerBuilder<Type> InteractionListenerBuilder<Type>setOnce(once: boolean): this setOnce(once: boolean): this| Param | Type | Required |
|---|---|---|
| | Yes |
Returns:
this thissetFilter(filter: InteractionListenerData<T>["filter"]): this setFilter(filter: InteractionListenerData<T>["filter"]): this| Param | Type | Required |
|---|---|---|
| | Yes |
Returns:
this thispublic source
.setExecute(...)
setExecute(execute: InteractionListenerData<T>["execute"]): this setExecute(execute: InteractionListenerData<T>["execute"]): this| Param | Type | Required |
|---|---|---|
| | Yes |
Returns:
this thistoJSON(): InteractionListenerData<T> toJSON(): InteractionListenerData<T>Returns:
InteractionListenerData<T> InteractionListenerData<T>Partial<InteractionListenerData<T>> Partial<InteractionListenerData<T>>