import { IPluginProviderAware } from '@crealogix-map/core'; import { ScreenRotation } from './ScreenRotation'; /** * An object that provides access to the web browser. */ export interface IBrowserService extends IPluginProviderAware { /** * Open given URL in a new browser window. */ openPage(url: string): void; /** * Open given URL in external OS browser. */ openExternalPage(url: string): void; /** * Open the given local file in a new browser. * @param path - the path to use - relative to the root directory of the web content. */ openLocalPage(path: string): void; /** * Close the open page in the browser. */ closePage(): void; /** * Set the allowed orientations of the screen to the given rotation. */ configureRotation(rotation: ScreenRotation): void; /** * Download the given pdf. * @param {string} url */ downloadPdf(url: string): void; }