Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface HomeAPI

Interface that contains functions for integrating with Home.

Hierarchy

  • HomeAPI

Index

Methods

deregister

  • deregister(providerId: string): Promise<void>
  • Deregister a provider.

    Parameters

    • providerId: string

      the name of the provider.

    Returns Promise<void>

hide

  • hide(): Promise<void>
  • Hide the Home UI.

    Returns Promise<void>

register

  • Register a provider that can return search results to Home.

    import { Home, CLIProvider } from "@openfin/workspace";

    import { fetchMySearchResults } from "./my-fetch-implementation";

    const myCLIProvider: CLIProvider = {
    name: "my-cli-provider",
    title: "My CLI Provider",
    icon: "https://google.com/favicon.ico",
    onUserInput: (req) => fetchMySearchResults(req.query)
    };

    Home.register(myCLIProvider);

    Parameters

    Returns Promise<void>

show

  • show(): Promise<void>
  • Show the Home UI.

    Returns Promise<void>

Generated using TypeDoc