Share via


NativeAdsManager.AdReady Event

Definition

Raised when a NativeAd is ready for your app.

// Register
event_token AdReady(EventHandler<IInspectable> const& handler) const;

// Revoke with event_token
void AdReady(event_token const* cookie) const;

// Revoke with event_revoker
AdReady_revoker AdReady(auto_revoke_t, EventHandler<IInspectable> const& handler) const;
public event System.EventHandler<object> AdReady;
function onAdReady(eventArgs) { /* Your code */ }
nativeAdsManager.addEventListener("adready", onAdReady);
nativeAdsManager.removeEventListener("adready", onAdReady);
- or -
nativeAdsManager.onadready = onAdReady;
Public Custom Event AdReady As EventHandler(Of Object) 

Event Type

System.EventHandler<System.Object>

Remarks

The e parameter of your event handler contains the NativeAd that is ready for your app to use.

Important

The NativeAdsManager class is deprecated. Use NativeAdsManagerV2 instead.

Applies to