Search
Loading...
Skip to content

Class: UserInterfaceAPI

A public interface for controlling the UI of the Creative Editor SDK

Methods#

setGlobalStateValue()#


| Type Parameter | | ------ | | T |

Parameters#

ParameterType
idstring
valueT

Returns#

void

Signature#

setGlobalStateValue(id: string, value: T): void

getGlobalStateValue()#


| Type Parameter | | ------ | | T |

Parameters#

ParameterType
idstring
defaultValue?T

Returns#

T

Signature#

getGlobalStateValue(id: string, defaultValue?: T): T

hasGlobalStateValue()#


| Parameter | Type | | ------ | ------ | | id | string |

Returns#

boolean

Signature#

hasGlobalStateValue(id: string): boolean

onGlobalStateChanged()#


| Type Parameter | | ------ | | T |

Parameters#

ParameterType
idstring
callback(value) => void

Returns#

(): void;
Returns#

void

Signature#

onGlobalStateChanged(id: string, callback: (value: T) => void): () => void