InteractionListenerBuilder

class

InteractionListenerBuilder

source
export class InteractionListenerBuilder<T extends InteractionListenerType>
export class InteractionListenerBuilder<T extends InteractionListenerType>
constructor(data?: Partial<InteractionListenerData<T>>)
constructor(data?: Partial<InteractionListenerData<T>>)
ParamTypeRequired
data
data
Partial<InteractionListenerData<T>>
Partial<InteractionListenerData<T>>
No
public source

.setType(...)

setType<Type extends T>(type: Type): InteractionListenerBuilder<Type>
setType<Type extends T>(type: Type): InteractionListenerBuilder<Type>
ParamTypeRequired
type
type
Type
Type
Yes

Returns:

InteractionListenerBuilder<Type>
InteractionListenerBuilder<Type>

public source

.setOnce(...)

setOnce(once: boolean): this
setOnce(once: boolean): this
ParamTypeRequired
once
once
boolean
boolean
Yes

Returns:

this
this

public source

.setFilter(...)

setFilter(filter: InteractionListenerData<T>["filter"]): this
setFilter(filter: InteractionListenerData<T>["filter"]): this
ParamTypeRequired
filter
filter
InteractionListenerData<T>["filter"]
InteractionListenerData<T>["filter"]
Yes

Returns:

this
this

public source

.setExecute(...)

setExecute(execute: InteractionListenerData<T>["execute"]): this
setExecute(execute: InteractionListenerData<T>["execute"]): this
ParamTypeRequired
execute
execute
InteractionListenerData<T>["execute"]
InteractionListenerData<T>["execute"]
Yes

Returns:

this
this

public source

.toJSON()

toJSON(): InteractionListenerData<T>
toJSON(): InteractionListenerData<T>

Returns:

InteractionListenerData<T>
InteractionListenerData<T>

public source

.data

Partial<InteractionListenerData<T>>
Partial<InteractionListenerData<T>>