Skip to main content

Types

This page is an index of types, interfaces, enums used across the Customization API

DefaultContentInterface

KeyTypeDescription
uidUidTypeuid of the user
audioToggleStateaudio mute state
videoToggleStatevideo mute state
streamType'high' | 'low'stream quality type
namestringdisplay name of the user
screenUidnumberuid of the screenshare stream
offlinebooleanoffline status of the user
type'rtc'content type

ExtenedContentInterface

Defined by the user, can contain any information necessary for the corresponding custom content added.

KeyTypeDescription
typestringContent of the chat message
[key: string]anyContent of the chat message

ToggleState

NameValue
disabled0
enabled1
disabling2
enabling3

ContentObjects

KeyTypeDescription
[key: UidType]ContentInterfaceObject containing information necessary to render content view for the corresponding uid

UidType : string | number

Selector( e: T ): Partial<T>

Method to subscribe to portions of the app-state. When passed to an app-state accessor method it receives the contents of the associated app-state as argument, it must then selectively return the contents which are intended to be subscribed and eventually returned by the accessor method.

DispatchType: <T, V>(action: { type: T; value: V }) => void

T: keyof CallbacksInterface

V: Parameters<CallbacksInterface[T]>

Used to dispatch various app builder actions.

CallbacksInterface

KeyTypeDescription
EndCall() => voidEnds the call
SwitchCamera() => voidSwitches the video device being used [ mobile only ]
SwapVideo( uid: UidType ) => voidSwaps given uid with the uid at the top in activeUids
DequeVideo( uid: UidType ) => voidShifts given uid to top of activeUids
UpdateRenderList( uid: UidType, user: Partial<ContentInterface> ) => voidUpdates contentObject of the given uid in defaultContent
AddCustomContent( uid: UidType, data: ContentInterface ) => voidAdds the given data to defaultContent with given uid as key.