Class TAds

Unit

Declaration

type TAds = class(TComponent)

Description

Advertisements in game. Right now only on Android (does nothing on other platforms, as CastleMessaging does nothing on non-Android platforms).

Usage:

  1. Create an instance of this class (only a single instance allowed).

  2. Initialize at least one ad network using one of the InitializeXxx methods. Usually you want to call the initialization from TCastleApplication.OnInitialize.

  3. Use remaining methods of this class to show / hide ads, like ShowFullScreenAd, ShowBanner, HideBanner.

  4. To include the necessary integration code in your Android project, add the appropriate services (admob, chartboost, startapp...) inside CastleEngineManifest.xml . See https://castle-engine.io/android_services .

Source: services/castleads.pas (line 84).

Hierarchy

  • TObject
  • TPersistent
  • TComponent
  • TAds

Generated by PasDoc 0.17.0.snapshot.