[]
Viewer.CancellationToken
• new CancellationToken()
• Readonly
isCancellationRequested: boolean
Gets true if cancellation is being requested.
node_modules/@grapecity/ar-js-viewer/dist/ar-js-viewer.d.ts:785
• Optional
Readonly
parentToken: CancellationToken
The parent token
node_modules/@grapecity/ar-js-viewer/dist/ar-js-viewer.d.ts:773
• Readonly
promise: Promise
<any
>
Gets a promise that is triggered when cancellation is requested.
node_modules/@grapecity/ar-js-viewer/dist/ar-js-viewer.d.ts:789
▸ register(callback
): void
Registers a new cancellation handler. Handler is invoked when cancellation is requested.
Name | Type |
---|---|
callback |
(reason : any ) => any |
void
node_modules/@grapecity/ar-js-viewer/dist/ar-js-viewer.d.ts:794
▸ Static
create(parentToken?
): Object
Creates a cancellation token and trigger function.
Name | Type | Description |
---|---|---|
parentToken? |
CancellationToken |
The parent token. |
Object
Name | Type |
---|---|
token |
CancellationToken |
cancel |
(e : any ) => void |
node_modules/@grapecity/ar-js-viewer/dist/ar-js-viewer.d.ts:778