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

Function isAndroid

src/preact/utils/platform.js:6–8  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

4 * @return {boolean}
5 */
6 isAndroid() {
7 return /Android/i.test(self.navigator.userAgent);
8 },
9
10 /**
11 * Whether the current platform is an iOS device.

Callers

nothing calls this directly

Calls 1

testMethod · 0.45

Tested by

no test coverage detected