@rafaykhan021/mas-capacitor
v1.0.2
Published
A Capacitor Plugin for Yodo1 MAS
Readme
@yodo1/mas-capacitor
A Capacitor Plugin for Yodo1 MAS
Install
npm install @yodo1/mas-capacitor
npx cap syncAPI
initialize(...)
initialize(options: InitializeOptions) => Promise<InitializeResult>| Param | Type |
| ------------- | --------------------------------------------------------------- |
| options | InitializeOptions |
Returns: Promise<InitializeResult>
loadAd(...)
loadAd(options: LoadAdOptions) => Promise<ActionResult>| Param | Type |
| ------------- | ------------------------------------------------------- |
| options | LoadAdOptions |
Returns: Promise<ActionResult>
showAd(...)
showAd(options: ShowAdOptions) => Promise<ActionResult>| Param | Type |
| ------------- | ------------------------------------------------------- |
| options | ShowAdOptions |
Returns: Promise<ActionResult>
isAdLoaded(...)
isAdLoaded(options: IsAdLoadedOptions) => Promise<IsAdLoadedResult>| Param | Type |
| ------------- | --------------------------------------------------------------- |
| options | IsAdLoadedOptions |
Returns: Promise<IsAdLoadedResult>
Interfaces
InitializeResult
| Prop | Type |
| ----------------- | -------------------- |
| initialized | boolean |
| errorCode | string |
| message | string |
InitializeOptions
| Prop | Type |
| ------------------------- | -------------------- |
| appKey | string |
| coppa | boolean |
| gdpr | boolean |
| ccpa | boolean |
| autoDelayIfLoadFail | boolean |
ActionResult
| Prop | Type |
| ----------------- | ----------------------------------------- |
| ok | boolean |
| action | 'loadAd' | 'showAd' |
| adType | AdType |
| placementId | string |
LoadAdOptions
| Prop | Type |
| ------------ | ----------------------------------------- |
| adType | AdType |
ShowAdOptions
| Prop | Type |
| ----------------- | ----------------------------------------- |
| adType | AdType |
| placementId | string |
IsAdLoadedResult
| Prop | Type |
| -------------- | ----------------------------------------- |
| isLoaded | boolean |
| adType | AdType |
IsAdLoadedOptions
| Prop | Type |
| ------------ | ----------------------------------------- |
| adType | AdType |
Type Aliases
AdType
'appopen' | 'interstitial' | 'rewarded'
