Package apple.pdfkit
Class PDFView
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.uikit.UIResponder
-
- apple.uikit.UIView
-
- apple.pdfkit.PDFView
-
- All Implemented Interfaces:
NSCoding,NSObject,CALayerDelegate,UIAccessibilityIdentification,UIAppearance,UIAppearanceContainer,UICoordinateSpace,UIDynamicItem,UIFocusEnvironment,UIFocusItem,UIFocusItemContainer,UIGestureRecognizerDelegate,UILargeContentViewerItem,UIPasteConfigurationSupporting,UIResponderStandardEditActions,UITraitEnvironment,UIUserActivityRestoring
public class PDFView extends UIView implements UIGestureRecognizerDelegate
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.uikit.UIView
UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations, UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3, UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4, UIView.Block_animateWithDurationAnimations, UIView.Block_animateWithDurationAnimationsCompletion_1, UIView.Block_animateWithDurationAnimationsCompletion_2, UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3, UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4, UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5, UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6, UIView.Block_modifyAnimationsWithRepeatCountAutoreversesAnimations, UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3, UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4, UIView.Block_performWithoutAnimation, UIView.Block_transitionFromViewToViewDurationOptionsCompletion, UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3, UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
Nested classes/interfaces inherited from interface apple.uikit.protocol.UIResponderStandardEditActions
UIResponderStandardEditActions.Block_updateTextAttributesWithConversionHandler
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPDFView(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.Object_appearance()To customize the appearance of all instances of a class, send the relevant appearance modification messages to the appearance proxy for the class.java.lang.Object_appearanceForTraitCollection(UITraitCollection trait)java.lang.Object_appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, UIAppearanceContainer ContainerClass, java.lang.Object... varargs)Deprecated.java.lang.Object_appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, NSArray<?> containerTypes)java.lang.Object_appearanceWhenContainedIn(UIAppearanceContainer ContainerClass, java.lang.Object... varargs)Deprecated.java.lang.Object_appearanceWhenContainedInInstancesOfClasses(NSArray<?> containerTypes)static booleanaccessInstanceVariablesDirectly()static voidaddKeyframeWithRelativeStartTimeRelativeDurationAnimations(double frameStartTime, double frameDuration, UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations)static PDFViewalloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static voidanimateKeyframesWithDurationDelayOptionsAnimationsCompletion(double duration, double delay, long options, UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion)static voidanimateWithDurationAnimations(double duration, UIView.Block_animateWithDurationAnimations animations)static voidanimateWithDurationAnimationsCompletion(double duration, UIView.Block_animateWithDurationAnimationsCompletion_1 animations, UIView.Block_animateWithDurationAnimationsCompletion_2 completion)static voidanimateWithDurationDelayOptionsAnimationsCompletion(double duration, double delay, long options, UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion)static voidanimateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion(double duration, double delay, double dampingRatio, double velocity, long options, UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations, UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion)voidannotationsChangedOnPage(PDFPage page)Tells PDFView that an annotation has changed on the specified page.static java.lang.Objectappearance()static java.lang.ObjectappearanceForTraitCollection(UITraitCollection trait)static java.lang.ObjectappearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, UIAppearanceContainer ContainerClass, java.lang.Object... varargs)Deprecated.static java.lang.ObjectappearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, NSArray<?> containerTypes)static java.lang.ObjectappearanceWhenContainedIn(UIAppearanceContainer ContainerClass, java.lang.Object... varargs)Deprecated.static java.lang.ObjectappearanceWhenContainedInInstancesOfClasses(NSArray<?> containerTypes)static booleanareAnimationsEnabled()longareaOfInterestForMouse(UIEvent event)Returns type of area (see defines above) mouse is over.longareaOfInterestForPoint(CGPoint cursorLocation)static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)booleanautoScales()Toggles mode whereby the scale factor is automatically changed as the view is resized, or rotated, to maximize the PDF displayed.UIColorbackgroundColor()Default is a 50% gray.static voidbeginAnimationsContext(java.lang.String animationID, org.moe.natj.general.ptr.VoidPtr context)static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)booleancanGoBack()Page visitations done via goToFirstPage:, goToLastPage:, goToPage:, etc. methods are recorded with visitation history and can be revisited by executing goBack: or goForward:, much like a web browser.booleancanGoForward()booleancanGoToFirstPage()Simple page navigation methods.booleancanGoToLastPage()booleancanGoToNextPage()booleancanGoToPreviousPage()booleancanZoomIn()booleancanZoomOut()static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()voidclearSelection()Equivalent to -[PDFView setCurrentSelection: nil].static voidclearTextInputContextIdentifier(java.lang.String identifier)static voidcommitAnimations()CGPointconvertPointFromPage(CGPoint point, PDFPage page)Converts a point from page coordinates to view coordinates.CGPointconvertPointToPage(CGPoint point, PDFPage page)Converts a point from view coordinates to page coordinates.CGRectconvertRectFromPage(CGRect rect, PDFPage page)Converts a rect from page coordinates to view coordinates.CGRectconvertRectToPage(CGRect rect, PDFPage page)Converts a rect from view coordinates to page coordinates.voidcopy(java.lang.Object sender)Copy the selection (if any) to the pasteboard.PDFDestinationcurrentDestination()Returns a PDFDestination representing the current page and point displayed (see -[currentPage] for more comments).PDFPagecurrentPage()Returns the current page you are on.PDFSelectioncurrentSelection()Getter: Returns actual instance of the current PDFSelection object.static java.lang.StringdebugDescription_static()PDFViewDelegatedelegate()-------- delegatestatic java.lang.Stringdescription_static()longdisplayBox()Specifies the box to display/clip to.longdisplayDirection()Set the layout direction, either vertical or horizontal, for the given display mode Defaults to vertical layout (kPDFDisplayDirectionVertical).longdisplayMode()See PDFDisplayMode constants above.booleandisplaysAsBook()Specifies whether the first page is to be treated as a cover and (for two-up modes) displayed by itself.booleandisplaysPageBreaks()Toggle displaying or not displaying page breaks (spacing) between pages.booleandisplaysRTL()Specifies presentation of pages from right-to-left.PDFDocumentdocument()Methods for associating a PDFDocument with a PDFView.UIViewdocumentView()Returns the innermost view used by PDFView.voiddrawPagePostToContext(PDFPage page, CGContextRef context)Also a handy method for sub-classing.voiddrawPageToContext(PDFPage page, CGContextRef context)For subclasses.booleanenableDataDetectors()Turns on or off data detection.voidenablePageShadows(boolean value)Specifies if shadows should be drawn around page borders in a PDFView.booleangestureRecognizerShouldBegin(UIGestureRecognizer gestureRecognizer)called when the recognizer attempts to transition out of UIGestureRecognizerStatePossible if a touch hit-tested to this view will be cancelled as a result of gesture recognition returns YES by default. return NO to cause the gesture recognizer to transition to UIGestureRecognizerStateFailed subclasses may override to prevent recognition of particular gestures. for example, UISlider prevents swipes parallel to the slider that start in the thumbbooleangestureRecognizerShouldBeRequiredToFailByGestureRecognizer(UIGestureRecognizer gestureRecognizer, UIGestureRecognizer otherGestureRecognizer)booleangestureRecognizerShouldReceiveEvent(UIGestureRecognizer gestureRecognizer, UIEvent event)called once before either -gestureRecognizer:shouldReceiveTouch: or -gestureRecognizer:shouldReceivePress: return NO to prevent the gesture recognizer from seeing this eventbooleangestureRecognizerShouldReceivePress(UIGestureRecognizer gestureRecognizer, UIPress press)called before pressesBegan:withEvent: is called on the gesture recognizer for a new press. return NO to prevent the gesture recognizer from seeing this pressbooleangestureRecognizerShouldReceiveTouch(UIGestureRecognizer gestureRecognizer, UITouch touch)called before touchesBegan:withEvent: is called on the gesture recognizer for a new touch. return NO to prevent the gesture recognizer from seeing this touchbooleangestureRecognizerShouldRecognizeSimultaneouslyWithGestureRecognizer(UIGestureRecognizer gestureRecognizer, UIGestureRecognizer otherGestureRecognizer)called when the recognition of one of gestureRecognizer or otherGestureRecognizer would be blocked by the other return YES to allow both to recognize simultaneously. the default implementation returns NO (by default no two gestures can be recognized simultaneously) note: returning YES is guaranteed to allow simultaneous recognition. returning NO is not guaranteed to prevent simultaneous recognition, as the other gesture's delegate may return YESbooleangestureRecognizerShouldRequireFailureOfGestureRecognizer(UIGestureRecognizer gestureRecognizer, UIGestureRecognizer otherGestureRecognizer)called once per attempt to recognize, so failure requirements can be determined lazily and may be set up between recognizers across view hierarchies return YES to set up a dynamic failure requirement between gestureRecognizer and otherGestureRecognizer note: returning YES is guaranteed to set up the failure requirement. returning NO does not guarantee that there will not be a failure requirement as the other gesture's counterpart delegate or subclass methods may return YESvoidgoBack(java.lang.Object sender)voidgoForward(java.lang.Object sender)voidgoToDestination(PDFDestination destination)Goes to the specified destination.voidgoToFirstPage(java.lang.Object sender)voidgoToLastPage(java.lang.Object sender)voidgoToNextPage(java.lang.Object sender)voidgoToPage(PDFPage page)Scrolls to page.voidgoToPreviousPage(java.lang.Object sender)voidgoToRectOnPage(CGRect rect, PDFPage page)Goes to the specified rectangle on the specified page.voidgoToSelection(PDFSelection selection)Goes to the specified selection (since selections can be large, goes to the first character of the selection).static longhash_static()NSArray<? extends PDFSelection>highlightedSelections()The following calls allow you to associate an array of PDFSelections with a PDFView.static doubleinheritedAnimationDuration()PDFViewinit()PDFViewinitWithCoder(NSCoder coder)NS_DESIGNATED_INITIALIZERPDFViewinitWithFrame(CGRect frame)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)longinterpolationQuality()Allows setting the interpolation quality for images drawn into the PDFView context.static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)booleanisUsingPageViewController()static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)static org.moe.natj.objc.ClasslayerClass()voidlayoutDocumentView()Tells PDFView to calculate (layout) the inner views.doublemaxScaleFactor()doubleminScaleFactor()Set the minimum and maximum scaling factors for the PDF document.static voidmodifyAnimationsWithRepeatCountAutoreversesAnimations(double count, boolean autoreverses, UIView.Block_modifyAnimationsWithRepeatCountAutoreversesAnimations animations)static java.lang.Objectnew_objc()UIEdgeInsetspageBreakMargins()If displaysPageBreaks is enabled, you may customize the spacing between pages by defining margins for the top, bottom, left, and right of each page.PDFPagepageForPointNearest(CGPoint point, boolean nearest)Given a point in view coordinates, returns the page at that point.booleanpageShadowsEnabled()Specifies if shadows should be drawn around page borders in a PDFView.voidperformAction(PDFAction action)Performs the action specified by action.static voidperformSystemAnimationOnViewsOptionsAnimationsCompletion(long animation, NSArray<? extends UIView> views, long options, UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion)static voidperformWithoutAnimation(UIView.Block_performWithoutAnimation actionsWithoutAnimation)static booleanrequiresConstraintBasedLayout()static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)CGSizerowSizeForPage(PDFPage page)Handy for initially sizing PDFView.doublescaleFactor()Method to get / set the current scaling on the displayed PDF document.doublescaleFactorForSizeToFit()Regardless of current autoScales mode, this returns the "size to fit" scale factor that autoScales would use for scaling the current document and layout.voidscrollSelectionToVisible(java.lang.Object sender)If the selection is not visible, scrolls view so that it is.voidselectAll(java.lang.Object sender)Select all text for the entire document, unless in in page view controller mode for iOS, where only the current page is selected.static voidsetAnimationBeginsFromCurrentState(boolean fromCurrentState)static voidsetAnimationCurve(long curve)static voidsetAnimationDelay(double delay)static voidsetAnimationDelegate(java.lang.Object delegate)static voidsetAnimationDidStopSelector(org.moe.natj.objc.SEL selector)static voidsetAnimationDuration_static(double duration)static voidsetAnimationRepeatAutoreverses(boolean repeatAutoreverses)static voidsetAnimationRepeatCount_static(float repeatCount)static voidsetAnimationsEnabled(boolean enabled)static voidsetAnimationStartDate(NSDate startDate)static voidsetAnimationTransitionForViewCache(long transition, UIView view, boolean cache)static voidsetAnimationWillStartSelector(org.moe.natj.objc.SEL selector)voidsetAutoScales(boolean value)Toggles mode whereby the scale factor is automatically changed as the view is resized, or rotated, to maximize the PDF displayed.voidsetBackgroundColor(UIColor value)Default is a 50% gray.voidsetCurrentSelection(PDFSelection value)Getter: Returns actual instance of the current PDFSelection object.voidsetCurrentSelectionAnimate(PDFSelection selection, boolean animate)Like -[setCurrentSelection:] above but with the additional parameter that specifies whether setting the selection should be animated.voidsetDelegate(PDFViewDelegate value)-------- delegatevoidsetDelegate_unsafe(PDFViewDelegate value)-------- delegatevoidsetDisplayBox(long value)Specifies the box to display/clip to.voidsetDisplayDirection(long value)Set the layout direction, either vertical or horizontal, for the given display mode Defaults to vertical layout (kPDFDisplayDirectionVertical).voidsetDisplayMode(long value)See PDFDisplayMode constants above.voidsetDisplaysAsBook(boolean value)Specifies whether the first page is to be treated as a cover and (for two-up modes) displayed by itself.voidsetDisplaysPageBreaks(boolean value)Toggle displaying or not displaying page breaks (spacing) between pages.voidsetDisplaysRTL(boolean value)Specifies presentation of pages from right-to-left.voidsetDocument(PDFDocument value)Methods for associating a PDFDocument with a PDFView.voidsetEnableDataDetectors(boolean value)Turns on or off data detection.voidsetHighlightedSelections(NSArray<? extends PDFSelection> value)The following calls allow you to associate an array of PDFSelections with a PDFView.voidsetInterpolationQuality(long value)Allows setting the interpolation quality for images drawn into the PDFView context.voidsetMaxScaleFactor(double value)voidsetMinScaleFactor(double value)Set the minimum and maximum scaling factors for the PDF document.voidsetPageBreakMargins(UIEdgeInsets value)If displaysPageBreaks is enabled, you may customize the spacing between pages by defining margins for the top, bottom, left, and right of each page.voidsetScaleFactor(double value)Method to get / set the current scaling on the displayed PDF document.static voidsetVersion_static(long aVersion)static org.moe.natj.objc.Classsuperclass_static()static voidtransitionFromViewToViewDurationOptionsCompletion(UIView fromView, UIView toView, double duration, long options, UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion)static voidtransitionWithViewDurationOptionsAnimationsCompletion(UIView view, double duration, long options, UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion)voidusePageViewControllerWithViewOptions(boolean enable, NSDictionary<?,?> viewOptions)Changes the underlying scroll view to use a UIPageViewController as a way to layout and navigate pages.static longuserInterfaceLayoutDirectionForSemanticContentAttribute(long attribute)static longuserInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection(long semanticContentAttribute, long layoutDirection)static longversion_static()NSArray<? extends PDFPage>visiblePages()Returns an array of PDFPage objects representing the currently visible pages.voidzoomIn(java.lang.Object sender)Zooming changes the scaling by root-2.voidzoomOut(java.lang.Object sender)-
Methods inherited from class apple.uikit.UIView
accessibilityIdentifier, accessibilityIgnoresInvertColors, actionForLayerForKey, addConstraint, addConstraints, addGestureRecognizer, addInteraction, addLayoutGuide, addMotionEffect, addSubview, alignmentRectForFrame, alignmentRectInsets, alpha, autoresizesSubviews, autoresizingMask, bottomAnchor, bounds, bringSubviewToFront, canBecomeFocused, center, centerXAnchor, centerYAnchor, clearsContextBeforeDrawing, clipsToBounds, collisionBoundingPath, collisionBoundsType, constraints, constraintsAffectingLayoutForAxis, contentCompressionResistancePriorityForAxis, contentHuggingPriorityForAxis, contentMode, contentScaleFactor, contentStretch, convertPointFromCoordinateSpace, convertPointFromView, convertPointToCoordinateSpace, convertPointToView, convertRectFromCoordinateSpace, convertRectFromView, convertRectToCoordinateSpace, convertRectToView, coordinateSpace, decodeRestorableStateWithCoder, didAddSubview, didHintFocusMovement, didMoveToSuperview, didMoveToWindow, didUpdateFocusInContextWithAnimationCoordinator, directionalLayoutMargins, displayLayer, drawLayerInContext, drawRect, drawRectForViewPrintFormatter, drawViewHierarchyInRectAfterScreenUpdates, effectiveUserInterfaceLayoutDirection, encodeRestorableStateWithCoder, encodeWithCoder, endEditing, exchangeSubviewAtIndexWithSubviewAtIndex, exerciseAmbiguityInLayout, firstBaselineAnchor, focusGroupIdentifier, focusItemContainer, focusItemsInRect, frame, frameForAlignmentRect, gestureRecognizers, hasAmbiguousLayout, heightAnchor, hitTestWithEvent, insertSubviewAboveSubview, insertSubviewAtIndex, insertSubviewBelowSubview, insetsLayoutMarginsFromSafeArea, interactions, intrinsicContentSize, invalidateIntrinsicContentSize, isDescendantOfView, isExclusiveTouch, isFocused, isHidden, isMultipleTouchEnabled, isOpaque, isUserInteractionEnabled, largeContentImage, largeContentImageInsets, largeContentTitle, lastBaselineAnchor, layer, layerWillDraw, layoutGuides, layoutIfNeeded, layoutMargins, layoutMarginsDidChange, layoutMarginsGuide, layoutSublayersOfLayer, layoutSubviews, leadingAnchor, leftAnchor, maskView, motionEffects, needsUpdateConstraints, overrideUserInterfaceStyle, parentFocusEnvironment, pointInsideWithEvent, preferredFocusedView, preferredFocusEnvironments, preservesSuperviewLayoutMargins, readableContentGuide, removeConstraint, removeConstraints, removeFromSuperview, removeGestureRecognizer, removeInteraction, removeLayoutGuide, removeMotionEffect, resizableSnapshotViewFromRectAfterScreenUpdatesWithCapInsets, restorationIdentifier, rightAnchor, safeAreaInsets, safeAreaInsetsDidChange, safeAreaLayoutGuide, scalesLargeContentImage, semanticContentAttribute, sendSubviewToBack, setAccessibilityIdentifier, setAccessibilityIgnoresInvertColors, setAlpha, setAutoresizesSubviews, setAutoresizingMask, setBounds, setCenter, setClearsContextBeforeDrawing, setClipsToBounds, setContentCompressionResistancePriorityForAxis, setContentHuggingPriorityForAxis, setContentMode, setContentScaleFactor, setContentStretch, setDirectionalLayoutMargins, setExclusiveTouch, setFocusGroupIdentifier, setFrame, setGestureRecognizers, setHidden, setInsetsLayoutMarginsFromSafeArea, setInteractions, setLargeContentImage, setLargeContentImageInsets, setLargeContentTitle, setLayoutMargins, setMaskView, setMotionEffects, setMultipleTouchEnabled, setNeedsDisplay, setNeedsDisplayInRect, setNeedsFocusUpdate, setNeedsLayout, setNeedsUpdateConstraints, setOpaque, setOverrideUserInterfaceStyle, setPreservesSuperviewLayoutMargins, setRestorationIdentifier, setScalesLargeContentImage, setSemanticContentAttribute, setShowsLargeContentViewer, setTag, setTintAdjustmentMode, setTintColor, setTransform, setTransform3D, setTranslatesAutoresizingMaskIntoConstraints, setUserInteractionEnabled, shouldUpdateFocusInContext, showsLargeContentViewer, sizeThatFits, sizeToFit, snapshotViewAfterScreenUpdates, subviews, superview, systemLayoutSizeFittingSize, systemLayoutSizeFittingSizeWithHorizontalFittingPriorityVerticalFittingPriority, tag, tintAdjustmentMode, tintColor, tintColorDidChange, topAnchor, trailingAnchor, traitCollection, traitCollectionDidChange, transform, transform3D, translatesAutoresizingMaskIntoConstraints, updateConstraints, updateConstraintsIfNeeded, updateFocusIfNeeded, viewForBaselineLayout, viewForFirstBaselineLayout, viewForLastBaselineLayout, viewPrintFormatter, viewWithTag, widthAnchor, willMoveToSuperview, willMoveToWindow, willRemoveSubview, window
-
Methods inherited from class apple.uikit.UIResponder
activityItemsConfiguration, becomeFirstResponder, buildMenuWithBuilder, canBecomeFirstResponder, canPasteItemProviders, canPerformActionWithSender, canResignFirstResponder, cut, decreaseSize, delete, editingInteractionConfiguration, increaseSize, inputAccessoryView, inputAccessoryViewController, inputAssistantItem, inputView, inputViewController, isFirstResponder, keyCommands, makeTextWritingDirectionLeftToRight, makeTextWritingDirectionRightToLeft, motionBeganWithEvent, motionCancelledWithEvent, motionEndedWithEvent, nextResponder, paste, pasteConfiguration, pasteItemProviders, pressesBeganWithEvent, pressesCancelledWithEvent, pressesChangedWithEvent, pressesEndedWithEvent, reloadInputViews, remoteControlReceivedWithEvent, resignFirstResponder, restoreUserActivityState, select, setActivityItemsConfiguration, setPasteConfiguration, setUserActivity, targetForActionWithSender, textInputContextIdentifier, textInputMode, toggleBoldface, toggleItalics, toggleUnderline, touchesBeganWithEvent, touchesCancelledWithEvent, touchesEndedWithEvent, touchesEstimatedPropertiesUpdated, touchesMovedWithEvent, undoManager, updateTextAttributesWithConversionHandler, updateUserActivityState, userActivity, validateCommand
-
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()
-
addKeyframeWithRelativeStartTimeRelativeDurationAnimations
public static void addKeyframeWithRelativeStartTimeRelativeDurationAnimations(double frameStartTime, double frameDuration, UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations)
-
alloc
public static PDFView alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
animateKeyframesWithDurationDelayOptionsAnimationsCompletion
public static void animateKeyframesWithDurationDelayOptionsAnimationsCompletion(double duration, double delay, long options, UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion)
-
animateWithDurationAnimations
public static void animateWithDurationAnimations(double duration, UIView.Block_animateWithDurationAnimations animations)
-
animateWithDurationAnimationsCompletion
public static void animateWithDurationAnimationsCompletion(double duration, UIView.Block_animateWithDurationAnimationsCompletion_1 animations, UIView.Block_animateWithDurationAnimationsCompletion_2 completion)
-
animateWithDurationDelayOptionsAnimationsCompletion
public static void animateWithDurationDelayOptionsAnimationsCompletion(double duration, double delay, long options, UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion)
-
animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion
public static void animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion(double duration, double delay, double dampingRatio, double velocity, long options, UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations, UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion)
-
annotationsChangedOnPage
public void annotationsChangedOnPage(PDFPage page)
Tells PDFView that an annotation has changed on the specified page. PDFView re-scans then for tooltips, popups, and informs PDFThumbnailViews so the thumbnail can be redrawn.
-
appearance
public static java.lang.Object appearance()
-
_appearance
public java.lang.Object _appearance()
Description copied from interface:UIAppearanceTo customize the appearance of all instances of a class, send the relevant appearance modification messages to the appearance proxy for the class. For example, to modify the bar tint color for all UINavigationBar instances: [[UINavigationBar appearance] setBarTintColor:myColor]; Note for iOS7: On iOS7 the tintColor property has moved to UIView, and now has special inherited behavior described in UIView.h. This inherited behavior can conflict with the appearance proxy, and therefore tintColor is now disallowed with the appearance proxy.- Specified by:
_appearancein interfaceUIAppearance- Overrides:
_appearancein classUIView
-
appearanceForTraitCollection
public static java.lang.Object appearanceForTraitCollection(UITraitCollection trait)
-
_appearanceForTraitCollection
public java.lang.Object _appearanceForTraitCollection(UITraitCollection trait)
- Specified by:
_appearanceForTraitCollectionin interfaceUIAppearance- Overrides:
_appearanceForTraitCollectionin classUIView
-
appearanceForTraitCollectionWhenContainedIn
@Deprecated public static java.lang.Object appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, UIAppearanceContainer ContainerClass, java.lang.Object... varargs)
Deprecated.
-
_appearanceForTraitCollectionWhenContainedIn
@Deprecated public java.lang.Object _appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, UIAppearanceContainer ContainerClass, java.lang.Object... varargs)
Deprecated.- Specified by:
_appearanceForTraitCollectionWhenContainedInin interfaceUIAppearance- Overrides:
_appearanceForTraitCollectionWhenContainedInin classUIView
-
appearanceForTraitCollectionWhenContainedInInstancesOfClasses
public static java.lang.Object appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, NSArray<?> containerTypes)
-
_appearanceForTraitCollectionWhenContainedInInstancesOfClasses
public java.lang.Object _appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, NSArray<?> containerTypes)
- Specified by:
_appearanceForTraitCollectionWhenContainedInInstancesOfClassesin interfaceUIAppearance- Overrides:
_appearanceForTraitCollectionWhenContainedInInstancesOfClassesin classUIView
-
appearanceWhenContainedIn
@Deprecated public static java.lang.Object appearanceWhenContainedIn(UIAppearanceContainer ContainerClass, java.lang.Object... varargs)
Deprecated.
-
_appearanceWhenContainedIn
@Deprecated public java.lang.Object _appearanceWhenContainedIn(UIAppearanceContainer ContainerClass, java.lang.Object... varargs)
Deprecated.Description copied from interface:UIAppearanceTo customize the appearances for instances of a class contained within an instance of a container class, or instances in a hierarchy, use +appearanceWhenContainedInInstancesOfClasses: for the appropriate appearance proxy. For example: [[UINavigationBar appearanceWhenContainedInInstancesOfClasses:@[[UISplitViewController class]]] setBarTintColor:myColor]; [[UINavigationBar appearanceWhenContainedInInstancesOfClasses:@[[UITabBarController class], [UISplitViewController class]]] setBarTintColor:myTabbedNavBarColor]; In any given view hierarchy the outermost appearance proxy wins. Specificity (depth of the chain) is the tie-breaker. In other words, the containment statement is treated as a partial ordering. Given a concrete ordering (actual subview hierarchy), we select the partial ordering that is the first unique match when reading the actual hierarchy from the window down.- Specified by:
_appearanceWhenContainedInin interfaceUIAppearance- Overrides:
_appearanceWhenContainedInin classUIView
-
appearanceWhenContainedInInstancesOfClasses
public static java.lang.Object appearanceWhenContainedInInstancesOfClasses(NSArray<?> containerTypes)
-
_appearanceWhenContainedInInstancesOfClasses
public java.lang.Object _appearanceWhenContainedInInstancesOfClasses(NSArray<?> containerTypes)
- Specified by:
_appearanceWhenContainedInInstancesOfClassesin interfaceUIAppearance- Overrides:
_appearanceWhenContainedInInstancesOfClassesin classUIView
-
areAnimationsEnabled
public static boolean areAnimationsEnabled()
-
areaOfInterestForMouse
public long areaOfInterestForMouse(UIEvent event)
Returns type of area (see defines above) mouse is over. This method is useful for subclasses.
-
areaOfInterestForPoint
public long areaOfInterestForPoint(CGPoint cursorLocation)
-
autoScales
public boolean autoScales()
Toggles mode whereby the scale factor is automatically changed as the view is resized, or rotated, to maximize the PDF displayed. For continuous modes this is a "fit width" behavior, for non-continuous modes it is a "best fit" behavior.
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
-
backgroundColor
public UIColor backgroundColor()
Default is a 50% gray.- Overrides:
backgroundColorin classUIView
-
beginAnimationsContext
public static void beginAnimationsContext(java.lang.String animationID, org.moe.natj.general.ptr.VoidPtr context)
-
canGoBack
public boolean canGoBack()
Page visitations done via goToFirstPage:, goToLastPage:, goToPage:, etc. methods are recorded with visitation history and can be revisited by executing goBack: or goForward:, much like a web browser. Note that visitiation history also includes all rect, destination, and selection goTo*: methods.
-
canGoForward
public boolean canGoForward()
-
canGoToFirstPage
public boolean canGoToFirstPage()
Simple page navigation methods.
-
canGoToLastPage
public boolean canGoToLastPage()
-
canGoToNextPage
public boolean canGoToNextPage()
-
canGoToPreviousPage
public boolean canGoToPreviousPage()
-
canZoomIn
public boolean canZoomIn()
-
canZoomOut
public boolean canZoomOut()
-
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()
-
clearSelection
public void clearSelection()
Equivalent to -[PDFView setCurrentSelection: nil].
-
clearTextInputContextIdentifier
public static void clearTextInputContextIdentifier(java.lang.String identifier)
-
commitAnimations
public static void commitAnimations()
-
convertPointFromPage
public CGPoint convertPointFromPage(CGPoint point, PDFPage page)
Converts a point from page coordinates to view coordinates.
-
convertPointToPage
public CGPoint convertPointToPage(CGPoint point, PDFPage page)
Converts a point from view coordinates to page coordinates.
-
convertRectFromPage
public CGRect convertRectFromPage(CGRect rect, PDFPage page)
Converts a rect from page coordinates to view coordinates.
-
convertRectToPage
public CGRect convertRectToPage(CGRect rect, PDFPage page)
Converts a rect from view coordinates to page coordinates.
-
copy
public void copy(java.lang.Object sender)
Copy the selection (if any) to the pasteboard.- Specified by:
copyin interfaceUIResponderStandardEditActions- Overrides:
copyin classUIResponder
-
currentDestination
public PDFDestination currentDestination()
Returns a PDFDestination representing the current page and point displayed (see -[currentPage] for more comments).
-
currentPage
public PDFPage currentPage()
Returns the current page you are on. For two-up modes, it is the left page (if there are two). For continuous modes, it finds the page crossing a horizontal line halfway between the views top and bottom bounds.
-
currentSelection
public PDFSelection currentSelection()
Getter: Returns actual instance of the current PDFSelection object. If you wish to modify this, you should make a copy of the selection returned and modify that instead. Method may return nil if there is no selection. Setter: Set current selection to selection. The view will redraw as necessary. The view will not scroll. Call -[scrollSelectionToVisible:] to scroll to the current selection.
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
delegate
public PDFViewDelegate delegate()
-------- delegate
-
description_static
public static java.lang.String description_static()
-
displayBox
public long displayBox()
Specifies the box to display/clip to. Default is kPDFDisplayBoxCropBox.
-
displayDirection
public long displayDirection()
Set the layout direction, either vertical or horizontal, for the given display mode Defaults to vertical layout (kPDFDisplayDirectionVertical).
-
displayMode
public long displayMode()
See PDFDisplayMode constants above. Default is kPDFDisplaySinglePageContinuous.
-
displaysAsBook
public boolean displaysAsBook()
Specifies whether the first page is to be treated as a cover and (for two-up modes) displayed by itself.
-
displaysPageBreaks
public boolean displaysPageBreaks()
Toggle displaying or not displaying page breaks (spacing) between pages. This spacing value is defined by the pageBreakMargins property. If displaysPageBreaks is NO, then pageBreakMargins will always return { 0.0, 0.0, 0.0, 0.0 }. Default is YES.
-
displaysRTL
public boolean displaysRTL()
Specifies presentation of pages from right-to-left. Defaults to NO.
-
document
public PDFDocument document()
Methods for associating a PDFDocument with a PDFView.
-
documentView
public UIView documentView()
Returns the innermost view used by PDFView. This is the view representing the displayed document pages.
-
drawPageToContext
public void drawPageToContext(PDFPage page, CGContextRef context)
For subclasses. This method is called for each visible page requiring rendering. By subclassing you can draw on top of the PDF page or draw the page entirely yourself. Default implementation erases page to white and calls: [page drawWithBox: [self displayBox] toContext: context]. Note that this may be called multiple times for the same page due to tiling of renderable content.
-
drawPagePostToContext
public void drawPagePostToContext(PDFPage page, CGContextRef context)
Also a handy method for sub-classing. Called for post-page rendering. In this method however no scaling/rotating is applied to the current context to map to page-space. The context is in "view-space" coordinates.
-
enableDataDetectors
public boolean enableDataDetectors()
Turns on or off data detection. If enabled, page text will be scanned for results such as URL's, addresses, phone numbers, times/dates, etc., as the page becomes visible. Where URL's are found, Link annotations are created in place. These are temporary annotations and are not saved.
-
enablePageShadows
public void enablePageShadows(boolean value)
Specifies if shadows should be drawn around page borders in a PDFView. Defaults to YES.
-
gestureRecognizerShouldBeRequiredToFailByGestureRecognizer
public boolean gestureRecognizerShouldBeRequiredToFailByGestureRecognizer(UIGestureRecognizer gestureRecognizer, UIGestureRecognizer otherGestureRecognizer)
- Specified by:
gestureRecognizerShouldBeRequiredToFailByGestureRecognizerin interfaceUIGestureRecognizerDelegate
-
gestureRecognizerShouldReceivePress
public boolean gestureRecognizerShouldReceivePress(UIGestureRecognizer gestureRecognizer, UIPress press)
Description copied from interface:UIGestureRecognizerDelegatecalled before pressesBegan:withEvent: is called on the gesture recognizer for a new press. return NO to prevent the gesture recognizer from seeing this press- Specified by:
gestureRecognizerShouldReceivePressin interfaceUIGestureRecognizerDelegate
-
gestureRecognizerShouldReceiveTouch
public boolean gestureRecognizerShouldReceiveTouch(UIGestureRecognizer gestureRecognizer, UITouch touch)
Description copied from interface:UIGestureRecognizerDelegatecalled before touchesBegan:withEvent: is called on the gesture recognizer for a new touch. return NO to prevent the gesture recognizer from seeing this touch- Specified by:
gestureRecognizerShouldReceiveTouchin interfaceUIGestureRecognizerDelegate
-
gestureRecognizerShouldRecognizeSimultaneouslyWithGestureRecognizer
public boolean gestureRecognizerShouldRecognizeSimultaneouslyWithGestureRecognizer(UIGestureRecognizer gestureRecognizer, UIGestureRecognizer otherGestureRecognizer)
Description copied from interface:UIGestureRecognizerDelegatecalled when the recognition of one of gestureRecognizer or otherGestureRecognizer would be blocked by the other return YES to allow both to recognize simultaneously. the default implementation returns NO (by default no two gestures can be recognized simultaneously) note: returning YES is guaranteed to allow simultaneous recognition. returning NO is not guaranteed to prevent simultaneous recognition, as the other gesture's delegate may return YES- Specified by:
gestureRecognizerShouldRecognizeSimultaneouslyWithGestureRecognizerin interfaceUIGestureRecognizerDelegate
-
gestureRecognizerShouldRequireFailureOfGestureRecognizer
public boolean gestureRecognizerShouldRequireFailureOfGestureRecognizer(UIGestureRecognizer gestureRecognizer, UIGestureRecognizer otherGestureRecognizer)
Description copied from interface:UIGestureRecognizerDelegatecalled once per attempt to recognize, so failure requirements can be determined lazily and may be set up between recognizers across view hierarchies return YES to set up a dynamic failure requirement between gestureRecognizer and otherGestureRecognizer note: returning YES is guaranteed to set up the failure requirement. returning NO does not guarantee that there will not be a failure requirement as the other gesture's counterpart delegate or subclass methods may return YES- Specified by:
gestureRecognizerShouldRequireFailureOfGestureRecognizerin interfaceUIGestureRecognizerDelegate
-
gestureRecognizerShouldBegin
public boolean gestureRecognizerShouldBegin(UIGestureRecognizer gestureRecognizer)
Description copied from class:UIViewcalled when the recognizer attempts to transition out of UIGestureRecognizerStatePossible if a touch hit-tested to this view will be cancelled as a result of gesture recognition returns YES by default. return NO to cause the gesture recognizer to transition to UIGestureRecognizerStateFailed subclasses may override to prevent recognition of particular gestures. for example, UISlider prevents swipes parallel to the slider that start in the thumb- Specified by:
gestureRecognizerShouldBeginin interfaceUIGestureRecognizerDelegate- Overrides:
gestureRecognizerShouldBeginin classUIView
-
goBack
public void goBack(java.lang.Object sender)
-
goForward
public void goForward(java.lang.Object sender)
-
goToDestination
public void goToDestination(PDFDestination destination)
Goes to the specified destination.
-
goToFirstPage
public void goToFirstPage(java.lang.Object sender)
-
goToLastPage
public void goToLastPage(java.lang.Object sender)
-
goToNextPage
public void goToNextPage(java.lang.Object sender)
-
goToPage
public void goToPage(PDFPage page)
Scrolls to page.
-
goToPreviousPage
public void goToPreviousPage(java.lang.Object sender)
-
goToRectOnPage
public void goToRectOnPage(CGRect rect, PDFPage page)
Goes to the specified rectangle on the specified page. If already visible, does nothing. This allows you to scroll the PDFView to a specific PDFAnnotation or PDFSelection (since both object have bounds methods). Note: rect is specified in page coordinates. Example: You might use this function when tabbing through a form to keep focus on the active element.
-
goToSelection
public void goToSelection(PDFSelection selection)
Goes to the specified selection (since selections can be large, goes to the first character of the selection).
-
hash_static
public static long hash_static()
-
highlightedSelections
public NSArray<? extends PDFSelection> highlightedSelections()
The following calls allow you to associate an array of PDFSelections with a PDFView. Unlike the user selection (above), these selections do not go away when the user clicks in the PDFView, etc. You must explicitly remove them by passing nil to -[setHighlightedSelections:]. These methods allow you to highlight text perhaps to indicate matches from a text search. To avoid confusion you should probably make sure the PDFSelections passed in are a different color from the user's default text selection color. Commonly used for highlighting search results.
-
inheritedAnimationDuration
public static double inheritedAnimationDuration()
-
initWithCoder
public PDFView initWithCoder(NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding- Overrides:
initWithCoderin classUIView
-
initWithFrame
public PDFView initWithFrame(CGRect frame)
- Overrides:
initWithFramein classUIView
-
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)
-
interpolationQuality
public long interpolationQuality()
Allows setting the interpolation quality for images drawn into the PDFView context.
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
isUsingPageViewController
public boolean isUsingPageViewController()
-
keyPathsForValuesAffectingValueForKey
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
layerClass
public static org.moe.natj.objc.Class layerClass()
-
layoutDocumentView
public void layoutDocumentView()
Tells PDFView to calculate (layout) the inner views. Called automatically when -[setDocument] and -[setDisplayBox] are called. You'll need to call this if you add or remove a page on the document, rotate a page etc.
-
maxScaleFactor
public double maxScaleFactor()
-
minScaleFactor
public double minScaleFactor()
Set the minimum and maximum scaling factors for the PDF document. Assigning these values will implicitly turn off autoScales, and allows scaleFactor to vary between these min / max scale factors
-
modifyAnimationsWithRepeatCountAutoreversesAnimations
public static void modifyAnimationsWithRepeatCountAutoreversesAnimations(double count, boolean autoreverses, UIView.Block_modifyAnimationsWithRepeatCountAutoreversesAnimations animations)
-
new_objc
public static java.lang.Object new_objc()
-
pageBreakMargins
public UIEdgeInsets pageBreakMargins()
If displaysPageBreaks is enabled, you may customize the spacing between pages by defining margins for the top, bottom, left, and right of each page. Note that pageBreakMargins only allows positive values and will clamp any negative value to 0.0. By default, if displaysPageBreaks is enabled, pageBreakMargins is { 4.75, 4.0, 4.75, 4.0 } (with respect to top, left, bottom, right), otherwise it is { 0.0, 0.0, 0.0, 0.0 }
-
pageForPointNearest
public PDFPage pageForPointNearest(CGPoint point, boolean nearest)
Given a point in view coordinates, returns the page at that point. May return nil if no page at point and nearest is NO.
-
pageShadowsEnabled
public boolean pageShadowsEnabled()
Specifies if shadows should be drawn around page borders in a PDFView. Defaults to YES.
-
performAction
public void performAction(PDFAction action)
Performs the action specified by action.
-
performSystemAnimationOnViewsOptionsAnimationsCompletion
public static void performSystemAnimationOnViewsOptionsAnimationsCompletion(long animation, NSArray<? extends UIView> views, long options, UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion)
-
performWithoutAnimation
public static void performWithoutAnimation(UIView.Block_performWithoutAnimation actionsWithoutAnimation)
-
requiresConstraintBasedLayout
public static boolean requiresConstraintBasedLayout()
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
rowSizeForPage
public CGSize rowSizeForPage(PDFPage page)
Handy for initially sizing PDFView. Returns the size needed to display the 'row' of the view's current document containing the specified page at the current scale factor and with the current display attributes.
-
scaleFactor
public double scaleFactor()
Method to get / set the current scaling on the displayed PDF document. Default is 1.0 (actual size). Note that the given scaleFactor is clamped by the current min / max scale factors. When using a page view controller layout on iOS, this only affects the currently visible page and is ignored for any future loaded pages. You can observe the PDFViewPageChangedNotification notification to see when new pages are visible to apply new scale factors to them.
-
scaleFactorForSizeToFit
public double scaleFactorForSizeToFit()
Regardless of current autoScales mode, this returns the "size to fit" scale factor that autoScales would use for scaling the current document and layout. For continuous modes this is a "fit width" scale, for non-continuous modes it is a "best fit" scale.
-
scrollSelectionToVisible
public void scrollSelectionToVisible(java.lang.Object sender)
If the selection is not visible, scrolls view so that it is.
-
selectAll
public void selectAll(java.lang.Object sender)
Select all text for the entire document, unless in in page view controller mode for iOS, where only the current page is selected.- Specified by:
selectAllin interfaceUIResponderStandardEditActions- Overrides:
selectAllin classUIResponder
-
setAnimationBeginsFromCurrentState
public static void setAnimationBeginsFromCurrentState(boolean fromCurrentState)
-
setAnimationCurve
public static void setAnimationCurve(long curve)
-
setAnimationDelay
public static void setAnimationDelay(double delay)
-
setAnimationDelegate
public static void setAnimationDelegate(java.lang.Object delegate)
-
setAnimationDidStopSelector
public static void setAnimationDidStopSelector(org.moe.natj.objc.SEL selector)
-
setAnimationDuration_static
public static void setAnimationDuration_static(double duration)
-
setAnimationRepeatAutoreverses
public static void setAnimationRepeatAutoreverses(boolean repeatAutoreverses)
-
setAnimationRepeatCount_static
public static void setAnimationRepeatCount_static(float repeatCount)
-
setAnimationStartDate
public static void setAnimationStartDate(NSDate startDate)
-
setAnimationTransitionForViewCache
public static void setAnimationTransitionForViewCache(long transition, UIView view, boolean cache)
-
setAnimationWillStartSelector
public static void setAnimationWillStartSelector(org.moe.natj.objc.SEL selector)
-
setAnimationsEnabled
public static void setAnimationsEnabled(boolean enabled)
-
setAutoScales
public void setAutoScales(boolean value)
Toggles mode whereby the scale factor is automatically changed as the view is resized, or rotated, to maximize the PDF displayed. For continuous modes this is a "fit width" behavior, for non-continuous modes it is a "best fit" behavior.
-
setBackgroundColor
public void setBackgroundColor(UIColor value)
Default is a 50% gray.- Overrides:
setBackgroundColorin classUIView
-
setCurrentSelection
public void setCurrentSelection(PDFSelection value)
Getter: Returns actual instance of the current PDFSelection object. If you wish to modify this, you should make a copy of the selection returned and modify that instead. Method may return nil if there is no selection. Setter: Set current selection to selection. The view will redraw as necessary. The view will not scroll. Call -[scrollSelectionToVisible:] to scroll to the current selection.
-
setCurrentSelectionAnimate
public void setCurrentSelectionAnimate(PDFSelection selection, boolean animate)
Like -[setCurrentSelection:] above but with the additional parameter that specifies whether setting the selection should be animated. The animation draws the user's attention to the new selection. Useful when searching.
-
setDelegate_unsafe
public void setDelegate_unsafe(PDFViewDelegate value)
-------- delegate
-
setDelegate
public void setDelegate(PDFViewDelegate value)
-------- delegate
-
setDisplayBox
public void setDisplayBox(long value)
Specifies the box to display/clip to. Default is kPDFDisplayBoxCropBox.
-
setDisplayDirection
public void setDisplayDirection(long value)
Set the layout direction, either vertical or horizontal, for the given display mode Defaults to vertical layout (kPDFDisplayDirectionVertical).
-
setDisplayMode
public void setDisplayMode(long value)
See PDFDisplayMode constants above. Default is kPDFDisplaySinglePageContinuous.
-
setDisplaysAsBook
public void setDisplaysAsBook(boolean value)
Specifies whether the first page is to be treated as a cover and (for two-up modes) displayed by itself.
-
setDisplaysPageBreaks
public void setDisplaysPageBreaks(boolean value)
Toggle displaying or not displaying page breaks (spacing) between pages. This spacing value is defined by the pageBreakMargins property. If displaysPageBreaks is NO, then pageBreakMargins will always return { 0.0, 0.0, 0.0, 0.0 }. Default is YES.
-
setDisplaysRTL
public void setDisplaysRTL(boolean value)
Specifies presentation of pages from right-to-left. Defaults to NO.
-
setDocument
public void setDocument(PDFDocument value)
Methods for associating a PDFDocument with a PDFView.
-
setEnableDataDetectors
public void setEnableDataDetectors(boolean value)
Turns on or off data detection. If enabled, page text will be scanned for results such as URL's, addresses, phone numbers, times/dates, etc., as the page becomes visible. Where URL's are found, Link annotations are created in place. These are temporary annotations and are not saved.
-
setHighlightedSelections
public void setHighlightedSelections(NSArray<? extends PDFSelection> value)
The following calls allow you to associate an array of PDFSelections with a PDFView. Unlike the user selection (above), these selections do not go away when the user clicks in the PDFView, etc. You must explicitly remove them by passing nil to -[setHighlightedSelections:]. These methods allow you to highlight text perhaps to indicate matches from a text search. To avoid confusion you should probably make sure the PDFSelections passed in are a different color from the user's default text selection color. Commonly used for highlighting search results.
-
setInterpolationQuality
public void setInterpolationQuality(long value)
Allows setting the interpolation quality for images drawn into the PDFView context.
-
setMaxScaleFactor
public void setMaxScaleFactor(double value)
-
setMinScaleFactor
public void setMinScaleFactor(double value)
Set the minimum and maximum scaling factors for the PDF document. Assigning these values will implicitly turn off autoScales, and allows scaleFactor to vary between these min / max scale factors
-
setPageBreakMargins
public void setPageBreakMargins(UIEdgeInsets value)
If displaysPageBreaks is enabled, you may customize the spacing between pages by defining margins for the top, bottom, left, and right of each page. Note that pageBreakMargins only allows positive values and will clamp any negative value to 0.0. By default, if displaysPageBreaks is enabled, pageBreakMargins is { 4.75, 4.0, 4.75, 4.0 } (with respect to top, left, bottom, right), otherwise it is { 0.0, 0.0, 0.0, 0.0 }
-
setScaleFactor
public void setScaleFactor(double value)
Method to get / set the current scaling on the displayed PDF document. Default is 1.0 (actual size). Note that the given scaleFactor is clamped by the current min / max scale factors. When using a page view controller layout on iOS, this only affects the currently visible page and is ignored for any future loaded pages. You can observe the PDFViewPageChangedNotification notification to see when new pages are visible to apply new scale factors to them.
-
setVersion_static
public static void setVersion_static(long aVersion)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
transitionFromViewToViewDurationOptionsCompletion
public static void transitionFromViewToViewDurationOptionsCompletion(UIView fromView, UIView toView, double duration, long options, UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion)
-
transitionWithViewDurationOptionsAnimationsCompletion
public static void transitionWithViewDurationOptionsAnimationsCompletion(UIView view, double duration, long options, UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion)
-
usePageViewControllerWithViewOptions
public void usePageViewControllerWithViewOptions(boolean enable, NSDictionary<?,?> viewOptions)Changes the underlying scroll view to use a UIPageViewController as a way to layout and navigate pages. Note that you can change the orientation via -[PDFView setDisplayDirection:], and that the property -[PDFView displayMode] is ignored: layout is always assumed single page continuous. The viewOptions argument is given to the UIPageViewController initializer, as a way to pass in page spacing, etc.
-
userInterfaceLayoutDirectionForSemanticContentAttribute
public static long userInterfaceLayoutDirectionForSemanticContentAttribute(long attribute)
-
userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection
public static long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection(long semanticContentAttribute, long layoutDirection)
-
version_static
public static long version_static()
-
visiblePages
public NSArray<? extends PDFPage> visiblePages()
Returns an array of PDFPage objects representing the currently visible pages. May return empty array if no document is assigned.
-
zoomIn
public void zoomIn(java.lang.Object sender)
Zooming changes the scaling by root-2.
-
zoomOut
public void zoomOut(java.lang.Object sender)
-
gestureRecognizerShouldReceiveEvent
public boolean gestureRecognizerShouldReceiveEvent(UIGestureRecognizer gestureRecognizer, UIEvent event)
Description copied from interface:UIGestureRecognizerDelegatecalled once before either -gestureRecognizer:shouldReceiveTouch: or -gestureRecognizer:shouldReceivePress: return NO to prevent the gesture recognizer from seeing this event- Specified by:
gestureRecognizerShouldReceiveEventin interfaceUIGestureRecognizerDelegate
-
-