Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Engine
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UPlatformInterfaceBase
- UInGameAdManager
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Engine/InGameAdManager.h |
Include | #include "Engine/InGameAdManager.h" |
Syntax
UCLASS ()
class UInGameAdManager : public UPlatformInterfaceBase
Variables
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
uint32: 1 | bShouldPauseWhileAdOpen | If true, the game will pause when the user clicks on the ad, which could take over the screen |
![]() ![]() |
TArray< FOnUserClickedBanner > | ClickedBannerDelegates | |
![]() ![]() |
TArray< FOnUserClosedAdvertisement > | ClosedAdDelegates |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
UInGameAdManager
(
const FObjectInitializer& ObjectInitializer |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | AddClickedBannerDelegate
(
FOnUserClickedBanner InDelegate |
Adds a delegate to the list of listeners |
![]() ![]() |
void | AddClosedAdDelegate
(
FOnUserClosedAdvertisement InDelegate |
Adds a delegate to the list of listeners |
![]() ![]() |
void | ClearClickedBannerDelegate
(
FOnUserClickedBanner InDelegate |
Removes a delegate from the list of listeners |
![]() ![]() |
void | ClearClosedAdDelegate
(
FOnUserClosedAdvertisement InDelegate |
Removes a delegate from the list of listeners |
![]() ![]() |
void | ForceCloseAd () |
If the game absolutely must close an opened (clicked on) advertisement, call this function. |
![]() ![]() |
void | HideBanner () |
Hides the advertisement banner shown with ShowInGameAdvertisementBanner. |
![]() ![]() |
void | Init () |
Perform any needed initialization |
![]() |
void | Called by platform when the user clicks on the ad banner. | |
![]() |
void | Called by platform when an opened ad is closed. Will unpause the game before calling the delegates | |
![]() ![]() |
void | SetPauseWhileAdOpen
(
bool bShouldPause |
Sets the value of bShouldPauseWhileAdOpen |
![]() ![]() |
void | ShowBanner
(
bool bShowBottomOfScreen |
Allows the platform to put up an advertisement on top of the viewport. |