import { Platform } from './platform' ; export function isCordova ( plt ) { const win = plt . win ( ) ; return ! ! ( win [ 'cordova' ] || win [ 'PhoneGap' ] || win [ 'phonegap' ] ) ; } export function isElectron ( plt ) { return plt . testUserAgent ( 'Electron' ) ; } export function isIos ( plt ) { return plt . testNavigatorPlatform ( 'iphone|ipad|ipod' ) ; } export function isSafari ( plt ) { return plt . testUserAgent ( 'Safari' ) ; } export function isWKWebView ( plt ) { return isIos ( plt ) && ! ! ( < any > plt . win ( ) ) [ 'webkit' ] ; } export function isIosUIWebView ( plt ) { return isIos ( plt ) && ! isWKWebView ( plt ) && ! isSafari ( plt ) ; }