MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / isIOS

Function isIOS

Ports/JavaScriptPort/src/main/webapp/js/fontmetrics.js:56–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54 }
55
56 function isIOS() {
57
58 return (/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream) || (navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1);
59 }
60 // Default runPrivileged just runs the function directly.
61 window.cn1RunPrivileged = function(callback) {
62 callback();

Callers 6

fontmetrics.jsFile · 0.85
isIOS13Function · 0.85
createAudioContextFunction · 0.85
pauseFunction · 0.85
recordFunction · 0.85
onStreamFunction · 0.85

Calls 1

testMethod · 0.65

Tested by

no test coverage detected