Type definition of app.context

Hierarchy

  • IContext

Methods

  • The method that returns meeting information when the app is loaded during a meeting

    Example

     const app = new window.webex.Application();
    await app.onReady();
    const meeting = await app.context.getMeeting();

    The meeting object would contain the properties as mentioned in IWebexAppsMeetingState

    Returns Promise<IWebexAppsMeetingState>

  • The method that returns information about the sidebar properties when the app is loaded from the sidebar

    The getSidebar API can reject with one of the following Error Codes,

    0 = SUCCESS, 1 = GENERIC_ERROR, 6 = NOT_SUPPORTED

    Example

     const app = new window.webex.Application();
    await app.onReady();
    const sidebar = await app.context.getSidebar();

    The sidebar object contians badge and other properties.

    Please visit IWebexAppsSidebar to know the sidebar's capabilities

    Returns Promise<{} | IWebexAppsSidebar>

  • The method that returns information about the space when the app is loaded inside a space

    Example

     const app = new window.webex.Application();
    await app.onReady();
    const space = await app.context.getSpace();

    The space object would contain the properties as mentioned in IWebexAppsSpaceState

    Returns Promise<IWebexAppsSpaceState>