bitwarden-estensione-browser/src/abstractions/platformUtils.service.ts

22 lines
806 B
TypeScript
Raw Normal View History

2018-01-07 04:19:10 +01:00
import { DeviceType } from '../enums/deviceType';
2018-01-06 21:47:23 +01:00
2018-01-25 20:26:09 +01:00
export abstract class PlatformUtilsService {
getDevice: () => DeviceType;
getDeviceString: () => string;
isFirefox: () => boolean;
isChrome: () => boolean;
isEdge: () => boolean;
isOpera: () => boolean;
isVivaldi: () => boolean;
isSafari: () => boolean;
analyticsId: () => string;
getDomain: (uriString: string) => string;
isViewOpen: () => boolean;
2018-01-25 20:32:10 +01:00
launchUri: (uri: string, options?: any) => void;
2018-01-25 20:26:09 +01:00
saveFile: (win: Window, blobData: any, blobOptions: any, fileName: string) => void;
2018-01-26 16:35:44 +01:00
getApplicationVersion: () => string;
2018-02-02 04:55:49 +01:00
supportsU2f: (win: Window) => boolean;
2018-02-03 05:47:03 +01:00
showDialog: (text: string, title?: string, confirmText?: string, cancelText?: string,
type?: string) => Promise<boolean>;
2018-01-06 21:47:23 +01:00
}