Page tree


com.pubmatic.sdk.banner

Interface PMInterstitialAd.InterstitialAdListener.

FeatureSupportHandler

 

Enclosing interface:
PMInterstitialAd.InterstitialAdListener

public static interface PMInterstitialAd.InterstitialAdListener.FeatureSupportHandler

Interface allowing application developers to control which device features are exposed to rich media ads. By default the SDK considers hardware availability and OS level permissions to determine which features should be reported as available to rich media ads. Using this interface, the application can override this process and force features to be reported as available, or not.

Method Summary

Modifier and TypeMethod and Description
Boolean PMInterstitialAd sender, java.lang.string calendarProperties) Invoked when an ad intends to create an event in the users' calendar.
Boolean PMInterstitialAd sender, java.lang.string url) Invoked when an ad intends to store a picture to the device camera role.
java.lang.Boolean PMInterstitialAd adView) Should creating calendar entries by reported as a supported feature?
java.lang.Boolean PMInterstitialAd adView) Should placing phone calls be reported as a supported feature?
java.lang.Boolean PMInterstitialAd adView) Should sending SMS messages be reported as a supported feature?
java.lang.Boolean PMInterstitialAd adView) Should storing pictures to the camera roll be reported as a supported feature?

Method Detail


shouldSupportSMS

java.lang.Boolean shouldSupportSMS(PMInterstitialAd adView)

Should sending SMS messages be reported as a supported feature?

Returns:
Boolean true if this feature should be reported as a supported feature, Boolean false if it should not, or NULL if the normal SDK hardware/permission check should be performed.

shouldSupportPhone

java.lang.Boolean shouldSupportPhone(PMInterstitialAd adView)

Should placing phone calls be reported as a supported feature?

Returns:
Boolean true if this feature should be reported as a supported feature, Boolean false if it should not, or NULL if the normal SDK hardware/permission check should be performed.

shouldSupportCalendar

java.lang.Boolean shouldSupportCalendar(PMInterstitialAd adView)

Should creating calendar entries by reported as a supported feature?

Returns:
Boolean true if this feature should be reported as a supported feature, Boolean false if it should not, or NULL if the normal SDK hardware/permission check should be performed.

shouldSupportStorePicture

java.lang.Boolean shouldSupportStorePicture(PMInterstitialAd adView)

Should storing pictures to the camera roll be reported as a supported feature?

Returns:
Boolean true if this feature should be reported as a supported feature, Boolean false if it should not, or NULL if the normal SDK hardware/permission check should be performed.

shouldStorePicture

Boolean shouldStorePicture(PMInterstitialAd sender, java.lang.string url)

Invoked when an ad intends to store a picture to the device camera role. Return Booleans true indicating the user has approved storing the picture, or false otherwise. NOTE: the application developer is responsible for displaying user dialog, and associated details such as running UI code on a UI thread if needed.

Parameters:
sender - The originating ad view where the event was triggered.
url - string URL of image that will be downloaded and stored, if approved.
Returns:
True to allow picture storage, false otherwise.

shouldAddCalendarEntry

Boolean shouldAddCalendarEntry(PMInterstitialAd sender, java.lang.string calendarProperties)

Invoked when an ad intends to create an event in the users' calendar. Return Boolean true indicating the user has approved creating the event, or false otherwise. NOTE: the application developer is responsible for displaying user dialog, and associated details such as running UI code on a UI thread if needed.

Parameters:
sender - The originating ad view where the event was triggered.
calendarProperties - Complex string describing specifics of the calendar event.
Returns:
True to allow picture storage, false otherwise.


⇧ Top