Skip to main content
Version: 16.5.2 (current)

Class MrecAd

Declaration
public class MrecAd : IAdPartialScreen, IAd, IAdLoadRetryHandler

Implements:
MatchinghamGames.VegasModule.IAdPartialScreen, MatchinghamGames.VegasModule.IAd, MatchinghamGames.VegasModule.IAdLoadRetryHandler

Properties

Enabled

Declaration
public bool Enabled { get; }

IsLoaded

If Mrec is loaded

Declaration
public bool IsLoaded { get; }

IsLoading

If Mrec is loading now

Declaration
public bool IsLoading { get; }

IsShowing

If Mrec is on screen now

Declaration
public bool IsShowing { get; }

IsDestroyed

If Mrec is destroyed

Declaration
public bool IsDestroyed { get; }

RetryAttempt

Attempt count to reload Mrec

Declaration
public int RetryAttempt { get; set; }

Data

Current data of the Mrec

Declaration
public AdDTO Data { get; }

RevenueData

Current revenue data of the Mrec

Declaration
public AdRevenueDTO RevenueData { get; }

ErrorData

Current error data of the Mrec

Declaration
public AdErrorDTO ErrorData { get; }

Methods

Initialize()

Declaration
public void Initialize()

Load()

Load Mrec manually If no ads is active, it won't work.

Declaration
public void Load()

Show(string)

Show Mrec manually If no ads is active, it won't work.

Declaration
public void Show(string adTag = null)
Parameters
TypeName
System.StringadTag

Hide()

Hide Mrec manually

Declaration
public void Hide()

Destroy()

Destroy Mrec manually

Declaration
public void Destroy()

Events

FailedToLoad

Invokes when Mrec fails to load

Declaration
public event Action FailedToLoad
Event Type

System.Action

Loaded

Invokes when Mrec is loaded

Declaration
public event Action Loaded
Event Type

System.Action

LoadedStatusChanged

Invokes when Mrec load status is changed

Declaration
public event Action LoadedStatusChanged
Event Type

System.Action

Shown

Invokes when Mrec is opened

Declaration
public event Action<AdDTO> Shown
Event Type

System.Action<MatchinghamGames.VegasModule.AdDTO>

Clicked

Invokes when Mrec is clicked by user

Declaration
public event Action Clicked
Event Type

System.Action

Hidden

Invokes when Mrec is hidden

Declaration
public event Action Hidden
Event Type

System.Action

Destroyed

Invokes when Mrec is destroyed

Declaration
public event Action Destroyed
Event Type

System.Action

AdDataObtained

Invokes when a Mrec ad data is obtained

Declaration
public event Action<AdDTO> AdDataObtained
Event Type

System.Action<MatchinghamGames.VegasModule.AdDTO>

RevenueDataObtained

Invokes when a Mrec ad revenue data is obtained

Declaration
public event Action<AdDTO, AdRevenueDTO> RevenueDataObtained
Event Type

System.Action<MatchinghamGames.VegasModule.AdDTO,MatchinghamGames.VegasModule.AdRevenueDTO>

ErrorDataObtained

Invokes when a Mrec ad error data is obtained

Declaration
public event Action<AdDTO, AdErrorDTO> ErrorDataObtained
Event Type

System.Action<MatchinghamGames.VegasModule.AdDTO,MatchinghamGames.VegasModule.AdErrorDTO>

Implements