import {AdinplayAdProvider} from 'shapez.io/js/platform/ad_providers/adinplay.js'AdinplayAdProvider
Extends:
Constructor Summary
| Public Constructor | ||
| public |
constructor(app: Application) |
|
Member Summary
| Public Members | ||
| public |
adContainerMainElement: Element |
|
| public |
|
|
| public |
When we showed the last video ad |
|
| public |
The resolve function to finish the current video ad. |
|
| public |
The current timer which will timeout the resolve |
|
Method Summary
| Public Methods | ||
| public |
getCanShowVideoAd(): * |
|
| public |
|
|
| public |
initialize(): * |
|
| public |
showVideoAd(): * |
|
Inherited Summary
| From class AdProviderInterface | ||
| public |
app: * |
|
| public |
Returns if it would be possible to show a video ad now. |
|
| public |
Returns if this provider serves ads at all |
|
| public |
initialize(): Promise<void> Initializes the storage |
|
| public |
showVideoAd(): Promise<void> Shows an video ad |
|
Public Constructors
public constructor(app: Application) source
Override:
AdProviderInterface#constructorParams:
| Name | Type | Attribute | Description |
| app | Application |
Public Members
public adContainerMainElement: Element source
public getOnSteamClickDetector: ClickDetectorConstructorArgs source
Public Methods
public getCanShowVideoAd(): * source
Returns if it would be possible to show a video ad now. This can be false if for example the last video ad is
Return:
| * |
public getHasAds(): boolean source
Returns if this provider serves ads at all
Override:
AdProviderInterface#getHasAdspublic initialize(): * source
Initializes the storage
Override:
AdProviderInterface#initializeReturn:
| * |
