Package apple.iad

Class ADInterstitialAd

  • All Implemented Interfaces:
    NSObject

    public class ADInterstitialAd
    extends NSObject
    ADInterstitialAd is a full screen advertisement, available on iPad since iOS 4.3, and on iPhone since iOS 7.0. There are three ways to display an ADInterstitialAd: • By providing a container view and calling -presentInView: • By providing a view controller and calling -presentFromViewController: • Indirectly, by setting the interstitial presentation policy on a view controller to Automatic or Manual (via -[UIViewController setInterstitialPresentationPolicy:]), and letting the framework manage presentation. An ADInterstitialAd should not be presented until it has loaded content. This is indicated via the -interstitialAdDidLoad: delegate method, and can also be queried via the loaded property. If the interstitial ad is presented when loaded=NO, an exception will be thrown. Note that using interstitial ads on iPhones running iOS < 7.0 will cause an exception to be thrown.
    • Constructor Detail

      • ADInterstitialAd

        protected ADInterstitialAd​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()
      • cancelAction

        public void cancelAction()
        [@property] cancelAction Cancels the current in-progress action. This should only be used in cases where the user's attention is required immediately. If this method is called, -interstitialAdActionDidFinish: will not be called.
      • delegate

        public ADInterstitialAdDelegate delegate()
        [@property] delegate The interstitial ad delegate is notified when it has loaded, when errors occur in getting ads, when actions begin and end, and when it has unloaded. On iOS 5 and later, this property is a weak reference and cannot be used with objects that modify the behavior of release or retain.
      • isActionInProgress

        public boolean isActionInProgress()
        [@property] actionInProgress Actions display full screen content in a modal session. Use this property to determine if such an action is currently in progress.
      • isLoaded

        public boolean isLoaded()
        [@property] loaded
        Returns:
        YES if an ad is loaded, NO otherwise. This property should always be checked before the interstitial ad is presented.
      • presentFromViewController

        public void presentFromViewController​(UIViewController viewController)
        presentFromViewController: As of iOS 7.0, the interstitial ad presentation APIs on UIViewController should be used instead of managing your own ADInterstitialAd and presenting it via the presentFromViewController: API. On iOS < 7.0, this method should be used to present the interstitial ad in a non-paging UI, such as a transition or at the end of a game level. When this API is used, the framework will manage how the interstitial is displayed and what happens when the user dismisses it. User dismissal of either the interstitial or the ad unit to which it is linked will restore control to the application immediately.
      • presentInView

        public boolean presentInView​(UIView containerView)
        presentInView: This method should be used to display the interstitial in a view hierarchy. The view hierarchy must be managed by a view controller and the size of the container view must fit the following constraints: • Width must be DEVICE_WIDTH for the current orientation. • Height must be at least (DEVICE_HEIGHT - STATUS_BAR_HEIGHT - NAVIGATION_BAR_HEIGHT - TAB_BAR_HEIGHT). • Height must not exceed DEVICE_HEIGHT
        Returns:
        YES if the interstitial could be presented, NO otherwise.
        Throws:
        NSInternalInconsistencyException - If the container view is not already in a view controller's managed hierarchy, an exception will be thrown.
        NSInternalInconsistencyException - If the interstitial has not loaded at the time this method is invoked, an exception will be thrown.
      • setDelegate_unsafe

        public void setDelegate_unsafe​(ADInterstitialAdDelegate value)
        [@property] delegate The interstitial ad delegate is notified when it has loaded, when errors occur in getting ads, when actions begin and end, and when it has unloaded. On iOS 5 and later, this property is a weak reference and cannot be used with objects that modify the behavior of release or retain.
      • setDelegate

        public void setDelegate​(ADInterstitialAdDelegate value)
        [@property] delegate The interstitial ad delegate is notified when it has loaded, when errors occur in getting ads, when actions begin and end, and when it has unloaded. On iOS 5 and later, this property is a weak reference and cannot be used with objects that modify the behavior of release or retain.