MCPcopy
hub / github.com/ionic-team/capacitor / getPlatform

Function getPlatform

core/src/runtime.ts:21–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19 const Plugins = (cap.Plugins = cap.Plugins || ({} as any));
20
21 const getPlatform = () => {
22 return capCustomPlatform !== null ? capCustomPlatform.name : getPlatformId(win);
23 };
24
25 const isNativePlatform = () => getPlatform() !== 'web';
26

Callers 3

isNativePlatformFunction · 0.70
isPluginAvailableFunction · 0.70
registerPluginFunction · 0.70

Calls 1

getPlatformIdFunction · 0.90

Tested by

no test coverage detected