PMInterstitialAd.InterstitialAdListener.FeatureSupportHandler (Interface)

Document created by david.simerly on Nov 9, 2017
Version 1Show Document
  • View in full screen mode

PubMatic Android API Reference

AdRequest

NativeAdSize

PMAdRendered

PMAdRequest

PMAdRequest.AD_TYPE

PMAdRequest.AWT_OPTION

PMAdRequest.ETHNICITY

PMAdRequest.GENDER

PMAdRequest.HASHING_TECHNIQUE

PMAdRequest.OPERID

PMAdRequest.RS

PMAdSize

PMAdSize

PMBannerAdRequest

PMBannerAdView

PMBannerAdView.BannerAdViewDelegate

PMBannerAdView.BannerAdViewDelegate.
     ActivityListener

PMBannerAdView.BannerAdViewDelegate.
     FeatureSupportHandler

PMBannerAdView.BannerAdViewDelegate.
     InternalBrowserListener

PMBannerAdView.BannerAdViewDelegate.
     RequestListener

PMBannerAdView.BannerAdViewDelegate.
     RichMediaListener

PMBannerImpression

PMBid

PMError

PMImpression

PMInterstitialAd

PMInterstitialAd.InterstitialAdListener

PMInterstitialAd.InterstitialAdListener.
     ActivityListener

➤ PMInterstitialAd.InterstitialAdListener.
     FeatureSupportHandler

PMInterstitialAd.InterstitialAdListener.
     InternalBrowserListener

PMInterstitialAd.InterstitialAdListener.
     RequestListener

PMInterstitialAd.InterstitialAdListener.
     RichMediaListener

PMInterstitialAdRequest

PMLogger

PMLogger.LogListener

PMLogger.PMLogLevel

PMNativeAd

PMNativeAd.Image

PMNativeAd.NativeRequestListener

PMNativeAdRequest

PMNativeAssetRequest

PMNativeAssetResponse

PMNativeDataAssetRequest

PMNativeDataAssetResponse

PMNativeDataAssetTypes

PMNativeImageAssetRequest

PMNativeImageAssetResponse

PMNativeImageAssetTypes

PMNativeTitleAssetRequest

PMNativeTitleAssetResponse

PMPrefetchManager

PMPrefetchManager.PMPrefetchListener

PMPrefetchRequest

PubMaticSDK


PubMatic SDK Documentation

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
BooleanPMInterstitialAd sender, java.lang.string calendarProperties) Invoked when an ad intends to create an event in the users' calendar.
BooleanPMInterstitialAd sender, java.lang.string url) Invoked when an ad intends to store a picture to the device camera role.
java.lang.BooleanPMInterstitialAd adView) Should creating calendar entries by reported as a supported feature?
java.lang.BooleanPMInterstitialAd adView) Should placing phone calls be reported as a supported feature?
java.lang.BooleanPMInterstitialAd adView) Should sending SMS messages be reported as a supported feature?
java.lang.BooleanPMInterstitialAd 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.

 

Attachments

    Outcomes