Home Reference Source
import {AdinplayAdProvider} from 'shapez.io/js/platform/ad_providers/adinplay.js'
public class | source

AdinplayAdProvider

Extends:

AdProviderInterface → AdinplayAdProvider

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
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
public
public

initialize(): *

public

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#constructor

Params:

NameTypeAttributeDescription
app Application

Public Members

public adContainerMainElement: Element source

public getOnSteamClickDetector: ClickDetectorConstructorArgs source

public lastVideoAdShowTime: * source

When we showed the last video ad

public videoAdResolveFunction: Function source

The resolve function to finish the current video ad. Null if none is currently running

public videoAdResolveTimer: * source

The current timer which will timeout the resolve

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

Override:

AdProviderInterface#getCanShowVideoAd

Return:

*

public getHasAds(): boolean source

Returns if this provider serves ads at all

Override:

AdProviderInterface#getHasAds

Return:

boolean

public initialize(): * source

Initializes the storage

Override:

AdProviderInterface#initialize

Return:

*

public showVideoAd(): * source

Shows an video ad

Override:

AdProviderInterface#showVideoAd

Return:

*