AboutSupportDeveloper GuideVersion 22.3.18

Response from home registration which includes metadata and a function to inject search string into home search

interface HomeRegistration {
    clientAPIVersion: string;
    workspaceVersion: string;
    setSearchQuery(query: string): Promise<void>;
}

Hierarchy (view full)

Properties

clientAPIVersion: string

Client API version

This is the version of the Workspace client API that is being used to register the component.

workspaceVersion: string

Workspace version

This is the version of Workspace that the Workspace component is running on. This could be used to determine if the component is running on a version of Workspace that supports a particular feature.

Methods

  • Function to inject search string into home search

    Parameters

    • query: string

      search string

    Returns Promise<void>

    A promise that resolves when the search string has been injected into home search

    Calling this will switch the active provider within Home to the provider that was registered with this HomeRegistration.

    An error if the Home Provider is no longer registered.