API:FMX.Advertising.TBannerAd.OnActionCanBegin
Delphi
property OnActionCanBegin;
C++
__property OnActionCanBegin;
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| event | published | FMX.Advertising.pas FMX.Advertising.hpp |
FMX.Advertising | TBannerAd |
Description
Occurs after your user taps the advertising banner, and before the banner responds to this user action.
FMX.Advertising.TBannerAd.OnActionCanBegin inherits from FMX.Advertising.TCustomBannerAd.OnActionCanBegin. All content below this line refers to FMX.Advertising.TCustomBannerAd.OnActionCanBegin.
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:
Senderis the current instance of the advertising banner control.WillLeaveApplicationindicates whether the advertisement is to be shown inside the application or not. IfWillLeaveApplicationis true, the advertisement appears in a new browser page. Otherwise, the advertisement is shown in your app.