Skip to main content

bfgPlacements Class

Wraps support for game Placements in your application. More...

Public Member Functions

abstract void logPlacement (@NonNull String placementName)
 Attempt to show a placement for the given name Typically accessed via the bfgGameReporting logPlacement API.
 
abstract void setSuppressPlacement (boolean suppressPlacements)
 If it would be inappropriate for a placement ad to appear over the game in the moment, call this method with the boolean parameter: true. More...
 

Static Public Member Functions

static bfgPlacements sharedInstance ()
 Returns the shared instance of the bfgPlacements class.
 

Static Public Attributes

static final String BFG_NOTIFICATION_PLACEMENT_PAYLOAD = "BFG_NOTIFICATION_PLACEMENT_PAYLOAD"
 Notification that a game specific payload was triggered on a placement.
 

Detailed Description

Wraps support for game Placements in your application. Currently supports Big Fish Game interstitials. When using bfgPlacement, you should be prepared for content, reward, and virtual good notifications.

Member Function Documentation

◆ setSuppressPlacement()

abstract void com.bigfishgames.bfglib.bfgPlacements.setSuppressPlacement (boolean suppressPlacements)
abstract
If it would be inappropriate for a placement ad to appear over the game in the moment, call this method with the boolean parameter: true. As soon as it is okay to show placements again, be sure to set it back to false.
Parameters
suppressPlacements- Whether or not placement should be suppressed.
Since
6.0
Deprecated:\n Use bfgGameReporting.setSuppressPlacement instead