Package com.castlabs.android.adverts
Class AdApiWrapper
java.lang.Object
com.castlabs.android.adverts.AdApiWrapper
- All Implemented Interfaces:
AdApi
Wrapper around
AdApi. The Wrapper outlives the internal AdApi.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidPerform the clickthrough operation on the current ad, if applicable.voidsetDelegate(AdApi delegate) Sets the delegate.voidskipAd()Request to skip the currently playing ad, if any, and skippable.
-
Constructor Details
-
AdApiWrapper
public AdApiWrapper()Creates an empty wrapper with no delegate assigned.
-
-
Method Details
-
setDelegate
Sets the delegate.- Parameters:
delegate- the delegate to set
-
skipAd
public void skipAd()Description copied from interface:AdApiRequest to skip the currently playing ad, if any, and skippable. -
clickthrough
public void clickthrough()Description copied from interface:AdApiPerform the clickthrough operation on the current ad, if applicable.- Specified by:
clickthroughin interfaceAdApi
-