Page tree


com.pubmatic.sdk.banner

Interface PMBannerAdView.BannerAdViewDelegate.FeatureSupportHandler

Enclosing interface:
PMBannerAdView.BannerAdViewDelegate

public static interface PMBannerAdView.BannerAdViewDelegate.
FeatureSupportHandler

Method Summary

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

Method Detail


shouldSupportSMS

java.lang.Boolean shouldSupportSMS(PMBannerAdView 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(PMBannerAdView 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(PMBannerAdView 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(PMBannerAdView 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(PMBannerAdView sender, java.lang.string url)

Invoked when an ad intends to store a picture to the device camera role. Return Boolean 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(PMBannerAdView 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