Class AdCache
Inherited Members
Namespace: Chartboost.Mediation.Utilities
Assembly: Chartboost.Mediation.dll
Syntax
public static class AdCache
Methods
CacheInfo()
Declaration
public static string CacheInfo()
Returns
| Type | Description |
|---|---|
| string |
GetAd(long)
Retrieves a IAd by unique identifier if any.
Declaration
public static IAd GetAd(long uniqueId)
Parameters
| Type | Name | Description |
|---|---|---|
| long | uniqueId | Associated unique identifier. |
Returns
| Type | Description |
|---|---|
| IAd | Cached IAd. |
GetAd(IntPtr)
Retrieves a IAd by unique identifier if any.
Declaration
public static IAd GetAd(IntPtr uniqueId)
Parameters
| Type | Name | Description |
|---|---|---|
| IntPtr | uniqueId | Associated unique identifier. |
Returns
| Type | Description |
|---|---|
| IAd | Cached IAd. |
GetAdLoadRequest(long)
Retrieves a AdLoadRequest by hashcode if any.
Declaration
public static AdLoadRequest GetAdLoadRequest(long uniqueId)
Parameters
| Type | Name | Description |
|---|---|---|
| long | uniqueId | Associated hashCode. |
Returns
| Type | Description |
|---|---|
| AdLoadRequest | Cached AdLoadRequest. |
ReleaseAd(long)
Releases a IAd from the cache.
Declaration
public static void ReleaseAd(long uniqueId)
Parameters
| Type | Name | Description |
|---|---|---|
| long | uniqueId | Associated unique identifier. |
ReleaseAd(IntPtr)
Releases a IAd from the cache.
Declaration
public static void ReleaseAd(IntPtr uniqueId)
Parameters
| Type | Name | Description |
|---|---|---|
| IntPtr | uniqueId | Associated unique identifier. |
ReleaseAdLoadRequest(long)
Releases a AdLoadRequest from the cache.
Declaration
public static void ReleaseAdLoadRequest(long uniqueId)
Parameters
| Type | Name | Description |
|---|---|---|
| long | uniqueId | Associated hashCode. |
TrackAd(long, IAd)
Keeps track of a IAd with a weak reference so it can be disposed by GC.
Declaration
public static void TrackAd(long uniqueId, IAd ad)
Parameters
| Type | Name | Description |
|---|---|---|
| long | uniqueId | Associated unique identifier. |
| IAd | ad | IAd to cache. |
TrackAd(IntPtr, IAd)
Keeps track of a IAd with a weak reference so it can be disposed by GC.
Declaration
public static void TrackAd(IntPtr uniqueId, IAd ad)
Parameters
| Type | Name | Description |
|---|---|---|
| IntPtr | uniqueId | Associated unique identifier. |
| IAd | ad | IAd to cache. |
TrackAdLoadRequest(long, AdLoadRequest)
Keeps track of a publisher's AdLoadRequest.
Declaration
public static void TrackAdLoadRequest(long uniqueId, AdLoadRequest request)
Parameters
| Type | Name | Description |
|---|---|---|
| long | uniqueId | Associated hashCode |
| AdLoadRequest | request | Publisher's fullscreen ad load request. |