NativeAdsManager.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.
// Register
event_token AdReady(EventHandler<IInspectable> const& handler) const;
// Revoke with event_token
void AdReady(event_token const* cookie) const;
// Revoke with event_revoker
NativeAdsManager::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
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.