API ReferenceGlobalsGlobalCallback

# Class: GlobalCallback

# Hierarchy

# Implements

# Index

# Constructors

# Properties

# Methods

# Constructors

# constructor

+ new GlobalCallback(creator: string): GlobalCallback

Inherited from UiCallback.constructor

Defined in packages/common-core/src/utils/ui-callback.ts:24

Parameters:

Name Type
creator string

Returns: GlobalCallback

# Properties

# creator

creator: string

Implementation of Context.creator

Inherited from UiCallback.creator

Defined in packages/common-core/src/utils/ui-callback.ts:9

# Methods

# cameraStartsMoving

cameraStartsMoving(): void

Inherited from UiCallback.cameraStartsMoving

Defined in packages/common-core/src/utils/ui-callback.ts:42

Returns: void


# get

get(target: UiCallback, prop: keyof UiCallback): UiCallback[keyof UiCallback]

Inherited from UiCallback.get

Defined in packages/common-core/src/utils/ui-callback.ts:35

Parameters:

Name Type
target UiCallback
prop keyof UiCallback

Returns: UiCallback[keyof UiCallback]


# mute

mute(): void

Inherited from UiCallback.mute

Defined in packages/common-core/src/utils/ui-callback.ts:18

Returns: void


# onCheckExternalCache

onCheckExternalCache(_url: string, _requestData: RequestInit): Promise‹any›

Defined in packages/common-core/src/services/global-callback.ts:22

Parameters:

Name Type
_url string
_requestData RequestInit

Returns: Promise‹any›


# onKernelMsg

onKernelMsg(_type: KernelMessageType, _message: string, _meta: KernelMessageMetaInfo): void

Defined in packages/common-core/src/services/global-callback.ts:20

is called when the Kernel sends us some message

Parameters:

Name Type Default Description
_type KernelMessageType - KernelMessageType can either be exception, error or warning
_message string - string the message from the Kernel
_meta KernelMessageMetaInfo {} KernelMessageMetaInfo optional, adds more information for debugging

Returns: void


# onNetworkRequest

onNetworkRequest(_url: string, _data: RequestInit, _options: FetchOptions): void

Defined in packages/common-core/src/services/global-callback.ts:12

is called when a network request is made

Parameters:

Name Type
_url string
_data RequestInit
_options FetchOptions

Returns: void


# unmute

unmute(): void

Inherited from UiCallback.unmute

Defined in packages/common-core/src/utils/ui-callback.ts:22

Returns: void