tra-analysis/website/functions/node_modules/@firebase/util/dist/src/environment.d.ts
2019-01-06 13:14:45 -06:00

27 lines
795 B
TypeScript

/**
* Returns navigator.userAgent string or '' if it's not defined.
* @return {string} user agent string
*/
export declare const getUA: () => string;
/**
* Detect Cordova / PhoneGap / Ionic frameworks on a mobile device.
*
* Deliberately does not rely on checking `file://` URLs (as this fails PhoneGap in the Ripple emulator) nor
* Cordova `onDeviceReady`, which would normally wait for a callback.
*
* @return {boolean} isMobileCordova
*/
export declare const isMobileCordova: () => boolean;
/**
* Detect React Native.
*
* @return {boolean} True if ReactNative environment is detected.
*/
export declare const isReactNative: () => boolean;
/**
* Detect Node.js.
*
* @return {boolean} True if Node.js environment is detected.
*/
export declare const isNodeSdk: () => boolean;