MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / onMessageFromNative

Function onMessageFromNative

src/plugins/admob/src/www/admob.ts:11–17  ·  view source on GitHub ↗
(event: any)

Source from the content-addressed store, hash-verified

9
10// biome-ignore lint/suspicious/noExplicitAny: ignore
11function onMessageFromNative(event: any) {
12 const { data } = event;
13 if (data?.adId) {
14 data.ad = MobileAd.getAdById(data.adId);
15 }
16 cordova.fireDocumentEvent(event.type, data);
17}
18
19const feature = "onAdMobPlusReady";
20channel.createSticky(feature);

Callers

nothing calls this directly

Calls 2

getAdByIdMethod · 0.80
fireDocumentEventMethod · 0.80

Tested by

no test coverage detected