FMX.Advertising.IFMXAdvertisingTestModeService.SetTestMode

From RAD Studio API Documentation
Jump to: navigation, search

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:

  1. SetTestMode reads the device ID that you manually specified calling SetTestModeDeviceID.
  2. If you did not manually define a device ID, SetTestMode attempts to automatically determine the ID of your testing device.
  3. 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.

See Also