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:
Create an instance of this class (only a single instance allowed).
Initialize at least one ad network using one of the
InitializeXxxmethods. Usually you want to call the initialization fromTCastleApplication.OnInitialize.Use remaining methods of this class to show / hide ads, like
ShowFullScreenAd,ShowBanner,HideBanner.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.