Show: Delphi C++
Display Preferences

FMX.Advertising.TCustomBannerAd.OnActionCanBegin

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnActionCanBegin: TAdActionCanBeginEvent read FOnActionCanBegin write FOnActionCanBegin;

C++

__property TAdActionCanBeginEvent OnActionCanBegin = {read=FOnActionCanBegin, write=FOnActionCanBegin};

Properties

Type Visibility Source Unit Parent
event public
FMX.Advertising.pas
FMX.Advertising.hpp
FMX.Advertising TCustomBannerAd

Description

Occurs after your user taps the advertising banner, and before the banner responds to this user action.

You can handle this event to decide whether or not the banner should respond to the user action, usually by showing a full-screen ad.

This event provides the following arguments to its event handler:

  • Sender is the current instance of the advertising banner control.
  • WillLeaveApplication indicates whether the advertisement is to be shown inside the application or not. If WillLeaveApplication is true, the advertisement appears in a new browser page. Otherwise, the advertisement is shown in your app.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance