FMX.Advertising.TCustomBannerAd.OnActionCanBegin
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. IfWillLeaveApplication
is true, the advertisement appears in a new browser page. Otherwise, the advertisement is shown in your app.