FMX.Advertising.IFMXAdvertisingTestModeService

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

IFMXAdvertisingTestModeService = interface(IInterface)

C++

__interface  INTERFACE_UUID("{6030094F-647F-423F-8D61-A2BCF13BFDB4}") IFMXAdvertisingTestModeService  : public System::IInterface

Properties

Type Visibility Source Unit Parent
interface
class
public
FMX.Advertising.pas
FMX.Advertising.hpp
FMX.Advertising FMX.Advertising

Description

Platform service that allows using the testing mode of advertising services. This platform service is only implemented on Android.

You must call SetTestModeDeviceID providing the ID of your test device. You can then call SetTestMode with True to enable the test mode:

In Delphi:

Service.SetTestModeDeviceID('AC98C820A50B4AD8A2106EDE96FB87D4');
Service.SetTestMode(True);

In C++:

Service->SetTestModeDeviceID("AC98C820A50B4AD8A2106EDE96FB87D4");
Service->SetTestMode(true);

Instead of accessing this platform service directly, you can use a wrapper such as TBannerAd.

See Also