Adman
 All Classes Namespaces Functions Variables Enumerations Enumerator Events
Adman.Instance Class Reference

More...

Public Member Functions

 Instance (MonoBehaviour coroutinesNode, int customerId)
 This class used to load advertisement content, play audio ads, control track and display banner More...
 
 Instance (MonoBehaviour coroutinesNode, int customerId, int playerId)
 
AdmanAd GetActiveAd ()
 
string GetVersion ()
 Get library version More...
 
void SetDebugMode (AdmanDebug debug)
 Debug mode with test advertising campaign More...
 
bool IsAutoPlay ()
 Autoplay audio when showed More...
 
void SetAutoPlay (bool state)
 
float GetVolume ()
 
void SetVolume (float volume)
 min 0.1f More...
 
bool CanPrepare ()
 Check adman ready for prepare state More...
 
bool CanPlay ()
 Check adman ready for play state More...
 
bool CanShow ()
 
AdmanState GetState ()
 
AdmanRegion GetRegion ()
 Current region for advertising More...
 
void SetRegion (AdmanRegion r)
 
void Prepare ()
 Run ad preloading process More...
 
void Prepare (AdmanSlot f)
 
void Prepare (AdmanType t)
 
void Prepare (AdmanType t, AdmanSlot f)
 
void SetMaxAdsCount (int count)
 
void SetMaxDuration (int duration)
 
void Play ()
 Play audio ad without creating view More...
 
void Pause ()
 Pause current audio ad More...
 
void Resume ()
 
void Rewind ()
 
void Stop ()
 
void Reset ()
 
void ShowDefaultView ()
 Display default view for app More...
 
void Show ()
 
void Rotate ()
 

Static Public Attributes

static readonly string Version = "1.8.6"
 
static float volume = 0.22f
 

Events

VoidDelegate PreloadCompleted
 
StateChangedDelegate StateChanged
 

Detailed Description

Constructor & Destructor Documentation

Adman.Instance.Instance ( MonoBehaviour  coroutinesNode,
int  customerId 
)

This class used to load advertisement content, play audio ads, control track and display banner

Parameters
parentcoroutinesRunner instance for coroutines (used for loading ads content)
idAdmanId example usage: new Adman(this, new AdmanId(777))

Member Function Documentation

bool Adman.Instance.CanPlay ( )

Check adman ready for play state

bool Adman.Instance.CanPrepare ( )

Check adman ready for prepare state

bool Adman.Instance.CanShow ( )

AdmanRegion Adman.Instance.GetRegion ( )

Current region for advertising

AdmanState Adman.Instance.GetState ( )

string Adman.Instance.GetVersion ( )

Get library version

Returns
Int.Int.Int
float Adman.Instance.GetVolume ( )

bool Adman.Instance.IsAutoPlay ( )

Autoplay audio when showed

void Adman.Instance.Pause ( )

Pause current audio ad

void Adman.Instance.Play ( )

Play audio ad without creating view

void Adman.Instance.Prepare ( )

Run ad preloading process

!

void Adman.Instance.Reset ( )

void Adman.Instance.Resume ( )

void Adman.Instance.Rewind ( )

void Adman.Instance.SetAutoPlay ( bool  state)

void Adman.Instance.SetDebugMode ( AdmanDebug  debug)

Debug mode with test advertising campaign

void Adman.Instance.SetVolume ( float  volume)

min 0.1f

void Adman.Instance.ShowDefaultView ( )

Display default view for app

void Adman.Instance.Stop ( )

Event Documentation

VoidDelegate Adman.Instance.PreloadCompleted

StateChangedDelegate Adman.Instance.StateChanged


The documentation for this class was generated from the following file: