FMX.Advertising.IFMXAdvertisingTestModeService.SetTestMode
Delphi
procedure SetTestMode(AValue: Boolean);
C++
virtual void __fastcall SetTestMode(bool AValue) = 0 ;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | FMX.Advertising.pas FMX.Advertising.hpp |
FMX.Advertising | IFMXAdvertisingTestModeService |
Description
Enables (True
) or disables (False
) the test mode of the advertising service.
To use the test mode on Android, your application must know the ID of your testing device. When you call SetTestMode:
- SetTestMode reads the device ID that you manually specified calling SetTestModeDeviceID.
- If you did not manually define a device ID, SetTestMode attempts to automatically determine the ID of your testing device.
- If SetTestMode cannot determine the ID of your testing device, it raises an ETestModeException exception.
SetTestMode can usually determine the ID of your testing device successfully. If you get an ETestModeException exception, follow the instructions in Requesting test ads to find out the ID of your testing device, and use SetTestModeDeviceID to manually specify this ID.