Package apple.iad
Class ADInterstitialAd
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.iad.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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedADInterstitialAd(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static ADInterstitialAdalloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)voidcancelAction()[@property] cancelAction Cancels the current in-progress action.static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()static java.lang.StringdebugDescription_static()ADInterstitialAdDelegatedelegate()[@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.static java.lang.Stringdescription_static()static longhash_static()ADInterstitialAdinit()static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)booleanisActionInProgress()[@property] actionInProgress Actions display full screen content in a modal session.booleanisLoaded()[@property] loadedstatic booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)static java.lang.Objectnew_objc()voidpresentFromViewController(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.booleanpresentInView(UIView containerView)presentInView: This method should be used to display the interstitial in a view hierarchy.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidsetDelegate(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.voidsetDelegate_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.static voidsetVersion_static(long aVersion)static org.moe.natj.objc.Classsuperclass_static()static longversion_static()-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static ADInterstitialAd alloc()
-
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()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
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.
-
init
public ADInterstitialAd init()
-
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.
-
-