h5 library H5 Games Ads
Classes
- H5GamesAdsClient
- A client to request H5 Games Ads (Ad Placement API).
Enums
- BreakFormat
- Available formats of Ad Breaks.
- BreakStatus
- Response from AdSense, provided as param of the adBreakDone callback
- BreakType
- Available types of Ad Breaks.
- PreloadAdBreaks
-
Whether ads should always be preloaded before the first call to
adBreak
. - SoundEnabled
- Whether the app is plays sounds during normal operations.
Extension Types
- AdBreakDonePlacementInfo
-
The parameter passed from the Ad Placement API to the
adBreakDone
callback. - AdBreakPlacement
- Placement configuration object.
- AdConfigParameters
-
Parameters for the
adConfig
method call.
Properties
- h5GamesAds → H5GamesAdsClient
-
The singleton instance of the H5 Games Ads client.
final
Typedefs
- H5AdBreakDoneCallback = void Function(AdBreakDonePlacementInfo placementInfo)
-
The type of the
adBreakDone
callback. - H5AdDismissedCallback = void Function()
-
The type of the
adDismissed
callback. - H5AdViewedCallback = void Function()
-
The type of the
adViewed
callback. - H5AfterAdCallback = void Function()
-
The type of the
afterAd
callback. - H5BeforeAdCallback = void Function()
-
The type of the
beforeAd
callback. - H5BeforeRewardCallback = void Function(H5ShowAdFn showAdFn)
-
The type of the
beforeReward
callback. - H5OnReadyCallback = void Function()
-
The type of the
onReady
callback. - H5ShowAdFn = void Function()
-
The type of the
showAdFn
function passed to thebeforeReward
callback.