capacitor-levelplay/dist/docs.json
CRT 57c8cbd935 Package metadata for the public 0.2.0 release
- package.json: version 0.2.0, description, author VOX Games, homepage,
  bugs, repository, keywords, engines, files (adds CHANGELOG.md)
- @capacitor/docgen: docgen script, run by build; dist/docs.json
- podspec: short summary, homepage from package.json, source at the
  git.crt.fyi repo and tag v<version>
- verify:android: standalone Gradle build of the library (wrapper 8.14.3,
  settings.gradle pointing at @capacitor/android dev dependency)
2026-10-09 18:16:06 +00:00

1323 lines
No EOL
35 KiB
JSON

{
"api": {
"name": "LevelPlayPlugin",
"slug": "levelplayplugin",
"docs": "Unity LevelPlay rewarded and interstitial ads (ad-unit API).",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"methods": [
{
"name": "initialize",
"signature": "(options: InitOptions) => Promise<InitResult>",
"parameters": [
{
"name": "options",
"docs": "",
"type": "InitOptions"
}
],
"returns": "Promise<InitResult>",
"tags": [
{
"name": "since",
"text": "0.1.0"
}
],
"docs": "Initialise the LevelPlay SDK (`LevelPlay.init`). Resolves on init success, rejects with the init error\n(code and message from the SDK) otherwise. Calling it again after a successful init resolves immediately;\nconcurrent calls share one init. Load ads only after this resolves.\n\nSet consent (and on iOS ask for ATT) before calling it.\n\nOn the web it rejects as unimplemented.",
"complexTypes": [
"InitResult",
"InitOptions"
],
"slug": "initialize"
},
{
"name": "getSdkVersion",
"signature": "() => Promise<InitResult>",
"parameters": [],
"returns": "Promise<InitResult>",
"tags": [
{
"name": "since",
"text": "0.1.0"
}
],
"docs": "Native LevelPlay SDK version. Works before init.",
"complexTypes": [
"InitResult"
],
"slug": "getsdkversion"
},
{
"name": "setConsent",
"signature": "(options: ConsentOptions) => Promise<void>",
"parameters": [
{
"name": "options",
"docs": "",
"type": "ConsentOptions"
}
],
"returns": "Promise<void>",
"tags": [
{
"name": "since",
"text": "0.1.0"
}
],
"docs": "Forward GDPR / CCPA / COPPA signals to LevelPlay. Call it before `initialize()` when you\ncan, and again whenever the user changes their choice.",
"complexTypes": [
"ConsentOptions"
],
"slug": "setconsent"
},
{
"name": "setMetaData",
"signature": "(options: MetaDataOptions) => Promise<void>",
"parameters": [
{
"name": "options",
"docs": "",
"type": "MetaDataOptions"
}
],
"returns": "Promise<void>",
"tags": [
{
"name": "since",
"text": "0.1.0"
}
],
"docs": "Raw `LevelPlay.setMetaData(key, value)` for SDK or network-specific flags. Call it before init.",
"complexTypes": [
"MetaDataOptions"
],
"slug": "setmetadata"
},
{
"name": "requestTrackingAuthorization",
"signature": "() => Promise<TrackingResult>",
"parameters": [],
"returns": "Promise<TrackingResult>",
"tags": [
{
"name": "since",
"text": "0.1.0"
}
],
"docs": "iOS: show the App Tracking Transparency prompt and resolve with the resulting status. Needs\n`NSUserTrackingUsageDescription` in `Info.plist`. iOS only shows the prompt once; later calls resolve the stored\nstatus. Call it before `initialize()`, while the app is active.\n\nAndroid and web: resolves `unavailable`.",
"complexTypes": [
"TrackingResult"
],
"slug": "requesttrackingauthorization"
},
{
"name": "getTrackingAuthorizationStatus",
"signature": "() => Promise<TrackingResult>",
"parameters": [],
"returns": "Promise<TrackingResult>",
"tags": [
{
"name": "since",
"text": "0.1.0"
}
],
"docs": "Current App Tracking Transparency status without prompting (iOS). Android and web: `unavailable`.",
"complexTypes": [
"TrackingResult"
],
"slug": "gettrackingauthorizationstatus"
},
{
"name": "loadRewarded",
"signature": "(options: AdUnitOptions) => Promise<void>",
"parameters": [
{
"name": "options",
"docs": "",
"type": "AdUnitOptions"
}
],
"returns": "Promise<void>",
"tags": [
{
"name": "since",
"text": "0.1.0"
}
],
"docs": "Start loading a rewarded ad for the ad unit. The native ad object is created on first use and reused for the\nad unit. Resolves once the request is issued; the outcome arrives as a `loaded` or `loadFailed` event.\nLoad the next ad after each show.",
"complexTypes": [
"AdUnitOptions"
],
"slug": "loadrewarded"
},
{
"name": "showRewarded",
"signature": "(options: ShowOptions) => Promise<ShowResult>",
"parameters": [
{
"name": "options",
"docs": "",
"type": "ShowOptions"
}
],
"returns": "Promise<ShowResult>",
"tags": [
{
"name": "since",
"text": "0.1.0"
}
],
"docs": "Show a loaded rewarded ad. Resolves after the ad closed (or failed to display) with what happened. The reward\nand close callbacks can arrive in either order on some networks, so the plugin waits up to 1 second after the close\nfor a late reward. Never rejects for \"not ready\": resolves `{ shown: false, rewarded: false, error }` instead.",
"complexTypes": [
"ShowResult",
"ShowOptions"
],
"slug": "showrewarded"
},
{
"name": "loadInterstitial",
"signature": "(options: AdUnitOptions) => Promise<void>",
"parameters": [
{
"name": "options",
"docs": "",
"type": "AdUnitOptions"
}
],
"returns": "Promise<void>",
"tags": [
{
"name": "since",
"text": "0.1.0"
}
],
"docs": "Start loading an interstitial ad for the ad unit. Works like `loadRewarded()`.",
"complexTypes": [
"AdUnitOptions"
],
"slug": "loadinterstitial"
},
{
"name": "showInterstitial",
"signature": "(options: ShowOptions) => Promise<ShowResult>",
"parameters": [
{
"name": "options",
"docs": "",
"type": "ShowOptions"
}
],
"returns": "Promise<ShowResult>",
"tags": [
{
"name": "since",
"text": "0.1.0"
}
],
"docs": "Show a loaded interstitial. Resolves after it closed (or failed to display). Never rejects for \"not ready\".",
"complexTypes": [
"ShowResult",
"ShowOptions"
],
"slug": "showinterstitial"
},
{
"name": "isReady",
"signature": "(options: IsReadyOptions) => Promise<IsReadyResult>",
"parameters": [
{
"name": "options",
"docs": "",
"type": "IsReadyOptions"
}
],
"returns": "Promise<IsReadyResult>",
"tags": [
{
"name": "since",
"text": "0.1.0"
}
],
"docs": "`isAdReady()` of the native ad object for this ad unit. `false` when the ad unit was never loaded.",
"complexTypes": [
"IsReadyResult",
"IsReadyOptions"
],
"slug": "isready"
},
{
"name": "launchTestSuite",
"signature": "() => Promise<void>",
"parameters": [],
"returns": "Promise<void>",
"tags": [
{
"name": "since",
"text": "0.1.0"
}
],
"docs": "Open the LevelPlay Integration Test Suite. Requires `initialize({ testSuite: true })` first.\nDevelopment builds only. Rejects on the web.",
"complexTypes": [],
"slug": "launchtestsuite"
},
{
"name": "validateIntegration",
"signature": "() => Promise<void>",
"parameters": [],
"returns": "Promise<void>",
"tags": [
{
"name": "since",
"text": "0.1.0"
}
],
"docs": "Write the LevelPlay integration helper report to the native log (Xcode console; Android logcat tag\n`IntegrationHelper`): SDK, adapter and network SDK versions, each `VERIFIED` or not. Development only.",
"complexTypes": [],
"slug": "validateintegration"
},
{
"name": "addListener",
"signature": "(eventName: 'loaded', listenerFunc: (event: AdEvent) => void) => Promise<PluginListenerHandle>",
"parameters": [
{
"name": "eventName",
"docs": "",
"type": "'loaded'"
},
{
"name": "listenerFunc",
"docs": "",
"type": "(event: AdEvent) => void"
}
],
"returns": "Promise<PluginListenerHandle>",
"tags": [
{
"name": "since",
"text": "0.1.0"
}
],
"docs": "An ad finished loading for the ad unit and can be shown.",
"complexTypes": [
"PluginListenerHandle",
"AdEvent"
],
"slug": "addlistenerloaded-"
},
{
"name": "addListener",
"signature": "(eventName: 'loadFailed', listenerFunc: (event: AdErrorEvent) => void) => Promise<PluginListenerHandle>",
"parameters": [
{
"name": "eventName",
"docs": "",
"type": "'loadFailed'"
},
{
"name": "listenerFunc",
"docs": "",
"type": "(event: AdErrorEvent) => void"
}
],
"returns": "Promise<PluginListenerHandle>",
"tags": [
{
"name": "since",
"text": "0.1.0"
}
],
"docs": "Loading failed, for example `509` (no fill). Retry later with a backoff.",
"complexTypes": [
"PluginListenerHandle",
"AdErrorEvent"
],
"slug": "addlistenerloadfailed-"
},
{
"name": "addListener",
"signature": "(eventName: 'displayed', listenerFunc: (event: AdEvent) => void) => Promise<PluginListenerHandle>",
"parameters": [
{
"name": "eventName",
"docs": "",
"type": "'displayed'"
},
{
"name": "listenerFunc",
"docs": "",
"type": "(event: AdEvent) => void"
}
],
"returns": "Promise<PluginListenerHandle>",
"tags": [
{
"name": "since",
"text": "0.1.0"
}
],
"docs": "The ad was displayed (impression). `adInfo.revenue` is available here.",
"complexTypes": [
"PluginListenerHandle",
"AdEvent"
],
"slug": "addlistenerdisplayed-"
},
{
"name": "addListener",
"signature": "(eventName: 'displayFailed', listenerFunc: (event: AdErrorEvent) => void) => Promise<PluginListenerHandle>",
"parameters": [
{
"name": "eventName",
"docs": "",
"type": "'displayFailed'"
},
{
"name": "listenerFunc",
"docs": "",
"type": "(event: AdErrorEvent) => void"
}
],
"returns": "Promise<PluginListenerHandle>",
"tags": [
{
"name": "since",
"text": "0.1.0"
}
],
"docs": "The ad failed to display. The pending show call resolves with the same error.",
"complexTypes": [
"PluginListenerHandle",
"AdErrorEvent"
],
"slug": "addlistenerdisplayfailed-"
},
{
"name": "addListener",
"signature": "(eventName: 'clicked', listenerFunc: (event: AdEvent) => void) => Promise<PluginListenerHandle>",
"parameters": [
{
"name": "eventName",
"docs": "",
"type": "'clicked'"
},
{
"name": "listenerFunc",
"docs": "",
"type": "(event: AdEvent) => void"
}
],
"returns": "Promise<PluginListenerHandle>",
"tags": [
{
"name": "since",
"text": "0.1.0"
}
],
"docs": "The user clicked the ad.",
"complexTypes": [
"PluginListenerHandle",
"AdEvent"
],
"slug": "addlistenerclicked-"
},
{
"name": "addListener",
"signature": "(eventName: 'closed', listenerFunc: (event: AdEvent) => void) => Promise<PluginListenerHandle>",
"parameters": [
{
"name": "eventName",
"docs": "",
"type": "'closed'"
},
{
"name": "listenerFunc",
"docs": "",
"type": "(event: AdEvent) => void"
}
],
"returns": "Promise<PluginListenerHandle>",
"tags": [
{
"name": "since",
"text": "0.1.0"
}
],
"docs": "The ad was closed and the app is back in front.",
"complexTypes": [
"PluginListenerHandle",
"AdEvent"
],
"slug": "addlistenerclosed-"
},
{
"name": "addListener",
"signature": "(eventName: 'rewarded', listenerFunc: (event: AdRewardEvent) => void) => Promise<PluginListenerHandle>",
"parameters": [
{
"name": "eventName",
"docs": "",
"type": "'rewarded'"
},
{
"name": "listenerFunc",
"docs": "",
"type": "(event: AdRewardEvent) => void"
}
],
"returns": "Promise<PluginListenerHandle>",
"tags": [
{
"name": "since",
"text": "0.1.0"
}
],
"docs": "Rewarded only: the user earned the reward. Can fire before or after `closed`.",
"complexTypes": [
"PluginListenerHandle",
"AdRewardEvent"
],
"slug": "addlistenerrewarded-"
},
{
"name": "removeAllListeners",
"signature": "() => Promise<void>",
"parameters": [],
"returns": "Promise<void>",
"tags": [
{
"name": "since",
"text": "0.1.0"
}
],
"docs": "Remove every listener of this plugin.",
"complexTypes": [],
"slug": "removealllisteners"
}
],
"properties": []
},
"interfaces": [
{
"name": "InitResult",
"slug": "initresult",
"docs": "Result of `initialize()` and `getSdkVersion()`.",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"methods": [],
"properties": [
{
"name": "sdkVersion",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "Native LevelPlay SDK version, for example `9.6.1`. `web` on the web.",
"complexTypes": [],
"type": "string"
}
]
},
{
"name": "InitOptions",
"slug": "initoptions",
"docs": "Options for `initialize()`.",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"methods": [],
"properties": [
{
"name": "appKey",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "LevelPlay app key from the LevelPlay dashboard. Android and iOS apps have different keys.",
"complexTypes": [],
"type": "string"
},
{
"name": "userId",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "Optional user id. Needed for server-to-server reward callbacks and the Ad Quality user journey.",
"complexTypes": [],
"type": "string | undefined"
},
{
"name": "testSuite",
"tags": [
{
"text": "false",
"name": "default"
},
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "Enable the LevelPlay Integration Test Suite: sets the `is_test_suite=enable` meta data before init.\nCall `launchTestSuite()` after `initialize` resolves. Never ship this enabled.",
"complexTypes": [],
"type": "boolean | undefined"
},
{
"name": "adaptersDebug",
"tags": [
{
"text": "false",
"name": "default"
},
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "Turn on debug logs of the mediated ad network adapters (`LevelPlay.setAdaptersDebug(true)`). Development only.",
"complexTypes": [],
"type": "boolean | undefined"
},
{
"name": "consent",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "Privacy signals applied right before init (LevelPlay recommends setting them before the SDK starts).\nSame as calling `setConsent()` first.",
"complexTypes": [
"ConsentOptions"
],
"type": "ConsentOptions"
}
]
},
{
"name": "ConsentOptions",
"slug": "consentoptions",
"docs": "Privacy signals forwarded to LevelPlay (`LevelPlayPrivacySettings` on Android, `LPMPrivacySettings` on iOS).\nOmitted fields are left untouched.",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"methods": [],
"properties": [
{
"name": "gdprConsent",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "GDPR: `true` when the user consented to personalised ads and data processing, `false` when they did not.\nFor users in the EEA, UK and Switzerland pass `false` until a consent management platform (CMP) says otherwise.",
"complexTypes": [],
"type": "boolean | undefined"
},
{
"name": "ccpaDoNotSell",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "CCPA and other US state privacy laws: `true` when the user opted OUT of the sale or sharing of personal data\n(\"do not sell\"), `false` otherwise.",
"complexTypes": [],
"type": "boolean | undefined"
},
{
"name": "coppa",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "COPPA: `true` when the user must be treated as a child (child-directed treatment).",
"complexTypes": [],
"type": "boolean | undefined"
}
]
},
{
"name": "MetaDataOptions",
"slug": "metadataoptions",
"docs": "Options for `setMetaData()`.",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"methods": [],
"properties": [
{
"name": "key",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "Meta data key, for example `is_deviceid_optout` or a network-specific flag from Unity's docs.",
"complexTypes": [],
"type": "string"
},
{
"name": "value",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "Meta data value, always a string (for example `\"true\"`).",
"complexTypes": [],
"type": "string"
}
]
},
{
"name": "TrackingResult",
"slug": "trackingresult",
"docs": "Result of `requestTrackingAuthorization()` and\n`getTrackingAuthorizationStatus()`.",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"methods": [],
"properties": [
{
"name": "status",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "iOS App Tracking Transparency status. Always `unavailable` on Android and web.",
"complexTypes": [
"TrackingStatus"
],
"type": "TrackingStatus"
}
]
},
{
"name": "AdUnitOptions",
"slug": "adunitoptions",
"docs": "Identifies one ad unit.",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"methods": [],
"properties": [
{
"name": "adUnitId",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "Ad unit id from the LevelPlay dashboard (Ad units page). Android and iOS ad units have different ids.",
"complexTypes": [],
"type": "string"
}
]
},
{
"name": "ShowResult",
"slug": "showresult",
"docs": "Result of `showRewarded()` and `showInterstitial()`, resolved after the ad\nclosed or failed to display.",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"methods": [],
"properties": [
{
"name": "shown",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "The ad was displayed (the `displayed` event fired).",
"complexTypes": [],
"type": "boolean"
},
{
"name": "rewarded",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "Rewarded only: the reward callback fired for this show. Grant the reward only when this is `true`.\nAlways `false` for interstitials.",
"complexTypes": [],
"type": "boolean"
},
{
"name": "reward",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "The reward, present when `rewarded` is `true`.",
"complexTypes": [
"Reward"
],
"type": "Reward"
},
{
"name": "error",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "Present when the ad was not ready (`code: -1`) or failed to display.",
"complexTypes": [
"AdError"
],
"type": "AdError"
},
{
"name": "adInfo",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "Info of the displayed ad.",
"complexTypes": [
"AdInfo"
],
"type": "AdInfo"
}
]
},
{
"name": "Reward",
"slug": "reward",
"docs": "The reward of a rewarded ad, as configured in the LevelPlay dashboard (per ad unit or placement).",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"methods": [],
"properties": [
{
"name": "name",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "Name of the reward, for example `Coins`.",
"complexTypes": [],
"type": "string"
},
{
"name": "amount",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "Amount of the reward.",
"complexTypes": [],
"type": "number"
}
]
},
{
"name": "AdError",
"slug": "aderror",
"docs": "Error reported by the SDK (load / display failures) or by the plugin.",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"methods": [],
"properties": [
{
"name": "code",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "LevelPlay error code, for example `509` (no fill). `-1` is used by the plugin for \"Ad not ready\" and for the web\nstub.",
"complexTypes": [],
"type": "number"
},
{
"name": "message",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "Human readable message.",
"complexTypes": [],
"type": "string"
}
]
},
{
"name": "AdInfo",
"slug": "adinfo",
"docs": "Subset of the native `LevelPlayAdInfo` (Android) / `LPMAdInfo` (iOS) that is useful in JavaScript.\nFields the SDK does not report are omitted.",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"methods": [],
"properties": [
{
"name": "adId",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "Unique id of this ad.",
"complexTypes": [],
"type": "string | undefined"
},
{
"name": "adUnitId",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "Ad unit id.",
"complexTypes": [],
"type": "string"
},
{
"name": "adUnitName",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "Ad unit name from the dashboard.",
"complexTypes": [],
"type": "string | undefined"
},
{
"name": "adFormat",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "Ad format as reported by the SDK.",
"complexTypes": [],
"type": "string | undefined"
},
{
"name": "placementName",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "Placement name of the show call, when one was used.",
"complexTypes": [],
"type": "string | undefined"
},
{
"name": "adNetwork",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "Name of the mediated network that served the ad.",
"complexTypes": [],
"type": "string | undefined"
},
{
"name": "instanceName",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "Mediation instance name.",
"complexTypes": [],
"type": "string | undefined"
},
{
"name": "instanceId",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "Mediation instance id.",
"complexTypes": [],
"type": "string | undefined"
},
{
"name": "country",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "Country code of the impression.",
"complexTypes": [],
"type": "string | undefined"
},
{
"name": "auctionId",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "Auction id.",
"complexTypes": [],
"type": "string | undefined"
},
{
"name": "revenue",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "Impression revenue in USD as reported by the SDK (may be absent or 0 before display).",
"complexTypes": [],
"type": "number | undefined"
},
{
"name": "precision",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "Revenue precision as reported by the SDK.",
"complexTypes": [],
"type": "string | undefined"
}
]
},
{
"name": "ShowOptions",
"slug": "showoptions",
"docs": "Options for `showRewarded()` and `showInterstitial()`: `adUnitId` (see AdUnitOptions) plus an optional placement.",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"methods": [],
"properties": [
{
"name": "placementName",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "Optional placement name configured in the LevelPlay dashboard (capping, pacing and reward per placement).\nOmit it to use the default placement.",
"complexTypes": [],
"type": "string | undefined"
}
]
},
{
"name": "IsReadyResult",
"slug": "isreadyresult",
"docs": "Result of `isReady()`.",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"methods": [],
"properties": [
{
"name": "ready",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "`true` when a loaded ad can be shown right now.",
"complexTypes": [],
"type": "boolean"
}
]
},
{
"name": "IsReadyOptions",
"slug": "isreadyoptions",
"docs": "Options for `isReady()`: `adUnitId` (see AdUnitOptions) plus the format.",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"methods": [],
"properties": [
{
"name": "format",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "Format of the ad unit.",
"complexTypes": [
"AdFormat"
],
"type": "AdFormat"
}
]
},
{
"name": "PluginListenerHandle",
"slug": "pluginlistenerhandle",
"docs": "",
"tags": [],
"methods": [],
"properties": [
{
"name": "remove",
"tags": [],
"docs": "",
"complexTypes": [],
"type": "() => Promise<void>"
}
]
},
{
"name": "AdEvent",
"slug": "adevent",
"docs": "Payload of the `loaded`, `displayed`, `clicked` and `closed` events.",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"methods": [],
"properties": [
{
"name": "format",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "Format of the ad unit that fired the event.",
"complexTypes": [
"AdFormat"
],
"type": "AdFormat"
},
{
"name": "adUnitId",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "Ad unit that fired the event.",
"complexTypes": [],
"type": "string"
},
{
"name": "adInfo",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "Ad info, when the SDK provides it (not on `loadFailed`).",
"complexTypes": [
"AdInfo"
],
"type": "AdInfo"
}
]
},
{
"name": "AdErrorEvent",
"slug": "aderrorevent",
"docs": "Payload of the `loadFailed` and `displayFailed` events: the AdEvent fields plus `error`.",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"methods": [],
"properties": [
{
"name": "error",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "What went wrong.",
"complexTypes": [
"AdError"
],
"type": "AdError"
}
]
},
{
"name": "AdRewardEvent",
"slug": "adrewardevent",
"docs": "Payload of the `rewarded` event: the AdEvent fields plus `reward`.",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"methods": [],
"properties": [
{
"name": "reward",
"tags": [
{
"text": "0.1.0",
"name": "since"
}
],
"docs": "The reward earned.",
"complexTypes": [
"Reward"
],
"type": "Reward"
}
]
}
],
"enums": [],
"typeAliases": [
{
"name": "TrackingStatus",
"slug": "trackingstatus",
"docs": "iOS App Tracking Transparency status. `unavailable` on Android, on the web and on unknown future iOS values.",
"types": [
{
"text": "'authorized'",
"complexTypes": []
},
{
"text": "'denied'",
"complexTypes": []
},
{
"text": "'restricted'",
"complexTypes": []
},
{
"text": "'notDetermined'",
"complexTypes": []
},
{
"text": "'unavailable'",
"complexTypes": []
}
]
},
{
"name": "AdFormat",
"slug": "adformat",
"docs": "Full-screen ad formats supported by this plugin. Banners and native ads are intentionally not exposed.",
"types": [
{
"text": "'rewarded'",
"complexTypes": []
},
{
"text": "'interstitial'",
"complexTypes": []
}
]
}
],
"pluginConfigs": []
}