[]
        
(Showing Draft Content)

Eventfan.EventFan

Class: EventFan<TArgs>

Eventfan.EventFan

Event

Type parameters

Name Description
TArgs event argument type

Table of contents

Constructors

Methods

Constructors

constructor

new EventFan<TArgs>()

Type parameters

Name
TArgs

Methods

register

register(callback): UnregisterHandler

Registers a new event handler. The handler is invoked when the cancellation is requested.

Parameters

Name Type
callback (args: TArgs) => any

Returns

UnregisterHandler

Defined in

node_modules/@grapecity/ar-js-viewer/dist/ar-js-viewer.d.ts:823


createFor

Static createFor<TArgs>(): Object

Creates a cancellation token and the trigger function.

Type parameters

Name
TArgs

Returns

Object

Name Type
event EventFan<TArgs>
trigger (e: TArgs) => void

Defined in

node_modules/@grapecity/ar-js-viewer/dist/ar-js-viewer.d.ts:815