Methods
emit
- emit(name: string, data?: Record<string, any>): void
Parameters
name: string
data: Record<string, any> = {}
Returns void
listen
- listen(name: string, handler: (data: any, callback: (data: Record<string, any>) => void) => any): void
Parameters
name: string
handler: (data: any, callback: (data: Record<string, any>) => void) => any
- (data: any, callback: (data: Record<string, any>) => void): any
Parameters
data: any
callback: (data: Record<string, any>) => void
- (data: Record<string, any>): void
Parameters
data: Record<string, any>
Returns void
Returns any
Returns void
Trigger NUI event