MCPcopy Create free account
hub / github.com/ampproject/amphtml / isAndroid

Method isAndroid

src/service/platform-impl.js:23–25  ·  view source on GitHub ↗

* Whether the current platform is an Android device. * @return {boolean}

()

Source from the content-addressed store, hash-verified

21 * @return {boolean}
22 */
23 isAndroid() {
24 return /Android/i.test(this.navigator_.userAgent);
25 }
26
27 /**
28 * Whether the current platform is an iOS device.

Callers 8

testUserAgentFunction · 0.95
enter_Method · 0.80
BentoAppBannerFunction · 0.80
getAndroidAppInfoFunction · 0.80
upgradeCallbackMethod · 0.80
buildCallbackMethod · 0.80

Calls 1

testMethod · 0.45

Tested by

no test coverage detected