NativeAdsManagerV2.AdReady Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Raised when a NativeAdV2 is ready for your app.
// Register
event_token AdReady(EventHandler<NativeAdReadyEventArgs> const& handler) const;
// Revoke with event_token
void AdReady(event_token const* cookie) const;
// Revoke with event_revoker
NativeAdsManagerV2::AdReady_revoker AdReady(auto_revoke_t, EventHandler<NativeAdReadyEventArgs> const& handler) const;
public event System.EventHandler<NativeAdReadyEventArgs> AdReady;
function onAdReady(eventArgs) { /* Your code */ }
nativeAdsManagerV2.addEventListener("adready", onAdReady);
nativeAdsManagerV2.removeEventListener("adready", onAdReady);
- or -
nativeAdsManagerV2.onadready = onAdReady;
Public Custom Event AdReady As EventHandler(Of NativeAdReadyEventArgs)
Event Type
Remarks
The NativeAd property of the event args object that is passed to your event handler contains the NativeAdV2 that is ready for your app to use.