Class MrecAd
public class MrecAd : IAdPartialScreen, IAd, IAdLoadRetryHandler
Implements:
MatchinghamGames.VegasModule.IAdPartialScreen, MatchinghamGames.VegasModule.IAd, MatchinghamGames.VegasModule.IAdLoadRetryHandler
Properties
Enabled
public bool Enabled { get; }
IsLoaded
If Mrec is loaded
public bool IsLoaded { get; }
IsLoading
If Mrec is loading now
public bool IsLoading { get; }
IsShowing
If Mrec is on screen now
public bool IsShowing { get; }
IsDestroyed
If Mrec is destroyed
public bool IsDestroyed { get; }
RetryAttempt
Attempt count to reload Mrec
public int RetryAttempt { get; set; }
Data
Current data of the Mrec
public AdDTO Data { get; }
RevenueData
Current revenue data of the Mrec
public AdRevenueDTO RevenueData { get; }
ErrorData
Current error data of the Mrec
public AdErrorDTO ErrorData { get; }
Methods
Initialize()
public void Initialize()
Load()
Load Mrec manually If no ads is active, it won't work.
public void Load()
Show(string)
Show Mrec manually If no ads is active, it won't work.
public void Show(string adTag = null)
Parameters
Type | Name |
---|---|
System.String | adTag |
Hide()
Hide Mrec manually
public void Hide()
Destroy()
Destroy Mrec manually
public void Destroy()
Events
FailedToLoad
Invokes when Mrec fails to load
public event Action FailedToLoad
Event Type
System.Action
Loaded
Invokes when Mrec is loaded
public event Action Loaded
Event Type
System.Action
LoadedStatusChanged
Invokes when Mrec load status is changed
public event Action LoadedStatusChanged
Event Type
System.Action
Shown
Invokes when Mrec is opened
public event Action<AdDTO> Shown
Event Type
System.Action<MatchinghamGames.VegasModule.AdDTO>
Clicked
Invokes when Mrec is clicked by user
public event Action Clicked
Event Type
System.Action
Hidden
Invokes when Mrec is hidden
public event Action Hidden
Event Type
System.Action
Destroyed
Invokes when Mrec is destroyed
public event Action Destroyed
Event Type
System.Action
AdDataObtained
Invokes when a Mrec ad data is obtained
public event Action<AdDTO> AdDataObtained
Event Type
System.Action<MatchinghamGames.VegasModule.AdDTO>
RevenueDataObtained
Invokes when a Mrec ad revenue data is obtained
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
public event Action<AdDTO, AdErrorDTO> ErrorDataObtained
Event Type
System.Action<MatchinghamGames.VegasModule.AdDTO,MatchinghamGames.VegasModule.AdErrorDTO>