2018-02-19 19:07:19 +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 {
|
2018-03-21 16:19:05 +01:00
|
|
|
identityClientId: string;
|
2018-01-25 20:26:09 +01:00
|
|
|
getDevice: () => DeviceType;
|
|
|
|
getDeviceString: () => string;
|
|
|
|
isFirefox: () => boolean;
|
|
|
|
isChrome: () => boolean;
|
|
|
|
isEdge: () => boolean;
|
|
|
|
isOpera: () => boolean;
|
|
|
|
isVivaldi: () => boolean;
|
|
|
|
isSafari: () => boolean;
|
2018-02-27 05:32:06 +01:00
|
|
|
isMacAppStore: () => boolean;
|
2018-01-25 20:26:09 +01:00
|
|
|
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-05-16 21:30:28 +02:00
|
|
|
supportsDuo: () => boolean;
|
2018-05-31 20:40:01 +02:00
|
|
|
showToast: (type: 'error' | 'success' | 'warning' | 'info', title: string, text: string) => void;
|
2018-02-03 05:47:03 +01:00
|
|
|
showDialog: (text: string, title?: string, confirmText?: string, cancelText?: string,
|
|
|
|
type?: string) => Promise<boolean>;
|
2018-02-13 23:23:45 +01:00
|
|
|
isDev: () => boolean;
|
2018-02-16 20:00:16 +01:00
|
|
|
copyToClipboard: (text: string, options?: any) => void;
|
2018-01-06 21:47:23 +01:00
|
|
|
}
|