Share via


AdControl.OnPointerDown Event

Definition

Raised when the user clicks, points, or touches the banner ad.

// Register
event_token OnPointerDown(EventHandler<PointerDownEventArgs> const& handler) const;

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

// Revoke with event_revoker
AdControl::OnPointerDown_revoker OnPointerDown(auto_revoke_t, EventHandler<PointerDownEventArgs> const& handler) const;
public event System.EventHandler<PointerDownEventArgs> OnPointerDown;
function onOnPointerDown(eventArgs) { /* Your code */ }
adControl.addEventListener("onpointerdown", onOnPointerDown);
adControl.removeEventListener("onpointerdown", onOnPointerDown);
- or -
adControl.ononpointerdown = onOnPointerDown;
Public Custom Event OnPointerDown As EventHandler(Of PointerDownEventArgs) 

Event Type

Remarks

This event is raised when the user clicks, points, or touches inside of the AdControl. The app can use this event to animate the AdControl for visual touch-down feedback. The banner ad may suppress this event if it is providing visual touch-down feedback itself. The handler function takes a single parameter that is the event object containing the coordinates where the event occurred.

Applies to