-
public interface Placement
-
-
Method Summary
Modifier and Type Method Description abstract UnitsetPlacementExpiryListener(HyprMXPlacementExpiryListener listener)Sets the placement expiry listener to check when the ad is no longer available for the placement. UnitloadAd(Function1<Boolean, Unit> onResult)Checks to see if there is an ad available. abstract UnitloadAd(HyprMXLoadAdListener listener)Checks to see if there is an ad available. abstract BooleanloadAd()Checks to see if there is an ad available. UnitloadAd(String bidResponse, Function1<Boolean, Unit> onResult)Load the placement with the bid response. abstract UnitloadAd(String bidResponse, HyprMXLoadAdListener listener)Load the placement with the bid response. abstract BooleanloadAd(String bidResponse)Load the placement with the bid response. abstract BooleanisAdAvailable()Checks to see if there is an ad available abstract UnitshowAd(HyprMXShowListener listener)Shows the ad associated with this placement. abstract StringgetName()abstract PlacementTypegetType()abstract UnitsetType(PlacementType type)-
-
Method Detail
-
setPlacementExpiryListener
abstract Unit setPlacementExpiryListener(HyprMXPlacementExpiryListener listener)
Sets the placement expiry listener to check when the ad is no longer available for the placement.
- Parameters:
listener- The listener to set.
-
loadAd
Unit loadAd(Function1<Boolean, Unit> onResult)
Checks to see if there is an ad available.
- Parameters:
onResult-The specified function block to where loadAd will callback with the loaded ad's availability.
-
loadAd
abstract Unit loadAd(HyprMXLoadAdListener listener)
Checks to see if there is an ad available.
- Parameters:
listener-loadAd will callback with the loaded ad's availability.
-
loadAd
Unit loadAd(String bidResponse, Function1<Boolean, Unit> onResult)
Load the placement with the bid response.
- Parameters:
bidResponse- The bid response from the bidding mediator.onResult-The specified function block to where loadAd will callback with the loaded ad's availability.
-
loadAd
abstract Unit loadAd(String bidResponse, HyprMXLoadAdListener listener)
Load the placement with the bid response.
- Parameters:
bidResponse- The bid response from the bidding mediator.listener-loadAd will callback with the loaded ad's availability.
-
loadAd
abstract Boolean loadAd(String bidResponse)
Load the placement with the bid response.
- Parameters:
bidResponse- The bid response from the bidding mediator.
-
isAdAvailable
abstract Boolean isAdAvailable()
Checks to see if there is an ad available
-
showAd
abstract Unit showAd(HyprMXShowListener listener)
Shows the ad associated with this placement.
- Parameters:
listener- The listener to where ad states will be called back.
-
getType
abstract PlacementType getType()
-
setType
abstract Unit setType(PlacementType type)
-
-
-
-