UNPKG

capacitor-unity-ads

Version:

Capacitor plugin for Unity Ads integration with support for rewarded video and interstitial ads

155 lines 4.21 kB
{ "api": { "name": "UnityAdsPlugin", "slug": "unityadsplugin", "docs": "", "tags": [], "methods": [ { "name": "initialize", "signature": "(options: { gameId: string; testMode?: boolean; }) => Promise<void>", "parameters": [ { "name": "options", "docs": "", "type": "{ gameId: string; testMode?: boolean | undefined; }" } ], "returns": "Promise<void>", "tags": [], "docs": "Initialize Unity Ads SDK", "complexTypes": [], "slug": "initialize" }, { "name": "loadRewardedVideo", "signature": "(options: { placementId: string; }) => Promise<void>", "parameters": [ { "name": "options", "docs": "", "type": "{ placementId: string; }" } ], "returns": "Promise<void>", "tags": [], "docs": "Load a rewarded video ad", "complexTypes": [], "slug": "loadrewardedvideo" }, { "name": "showRewardedVideo", "signature": "() => Promise<{ success: boolean; reward?: RewardInfo; }>", "parameters": [], "returns": "Promise<{ success: boolean; reward?: RewardInfo | undefined; }>", "tags": [], "docs": "Show a rewarded video ad", "complexTypes": [ "RewardInfo" ], "slug": "showrewardedvideo" }, { "name": "isRewardedVideoLoaded", "signature": "() => Promise<{ loaded: boolean; }>", "parameters": [], "returns": "Promise<{ loaded: boolean; }>", "tags": [], "docs": "Check if rewarded video ad is loaded", "complexTypes": [], "slug": "isrewardedvideoloaded" }, { "name": "loadInterstitial", "signature": "(options: { placementId: string; }) => Promise<void>", "parameters": [ { "name": "options", "docs": "", "type": "{ placementId: string; }" } ], "returns": "Promise<void>", "tags": [], "docs": "Load an interstitial ad", "complexTypes": [], "slug": "loadinterstitial" }, { "name": "showInterstitial", "signature": "() => Promise<{ success: boolean; }>", "parameters": [], "returns": "Promise<{ success: boolean; }>", "tags": [], "docs": "Show an interstitial ad", "complexTypes": [], "slug": "showinterstitial" }, { "name": "isInterstitialLoaded", "signature": "() => Promise<{ loaded: boolean; }>", "parameters": [], "returns": "Promise<{ loaded: boolean; }>", "tags": [], "docs": "Check if interstitial ad is loaded", "complexTypes": [], "slug": "isinterstitialloaded" }, { "name": "setTestMode", "signature": "(options: { enabled: boolean; }) => Promise<void>", "parameters": [ { "name": "options", "docs": "", "type": "{ enabled: boolean; }" } ], "returns": "Promise<void>", "tags": [], "docs": "Set test mode", "complexTypes": [], "slug": "settestmode" }, { "name": "getVersion", "signature": "() => Promise<{ version: string; }>", "parameters": [], "returns": "Promise<{ version: string; }>", "tags": [], "docs": "Get Unity Ads version", "complexTypes": [], "slug": "getversion" } ], "properties": [] }, "interfaces": [ { "name": "RewardInfo", "slug": "rewardinfo", "docs": "", "tags": [], "methods": [], "properties": [ { "name": "type", "tags": [], "docs": "", "complexTypes": [], "type": "string" }, { "name": "amount", "tags": [], "docs": "", "complexTypes": [], "type": "number" } ] } ], "enums": [], "typeAliases": [], "pluginConfigs": [] }