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:23

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:8

# Methods

# get

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

Inherited from UiCallback.get

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

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:17

Returns: void


# 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:21

Returns: void