FMX.Advertising.TBannerAd.OnActionCanBegin

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnActionCanBegin: TAdActionCanBeginEvent read FOnActionCanBegin write FOnActionCanBegin;

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:

  • 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