public class CPDFReaderView extends ReaderView implements OnAnnotationChangedListener
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
CPDFReaderView.CheckFocusType  | 
static class  | 
CPDFReaderView.TInkDrawHelper
The drawing helper of Ink annotation. 
 | 
static class  | 
CPDFReaderView.TouchMode
TouchEvent Touch mode in the page view. | 
static class  | 
CPDFReaderView.ViewMode  | 
android.view.ViewGroup.LayoutParams, android.view.ViewGroup.MarginLayoutParams, android.view.ViewGroup.OnHierarchyChangeListenerandroid.view.View.AccessibilityDelegate, android.view.View.BaseSavedState, android.view.View.DragShadowBuilder, android.view.View.MeasureSpec, android.view.View.OnApplyWindowInsetsListener, android.view.View.OnAttachStateChangeListener, android.view.View.OnCapturedPointerListener, android.view.View.OnClickListener, android.view.View.OnContextClickListener, android.view.View.OnCreateContextMenuListener, android.view.View.OnDragListener, android.view.View.OnFocusChangeListener, android.view.View.OnGenericMotionListener, android.view.View.OnHoverListener, android.view.View.OnKeyListener, android.view.View.OnLayoutChangeListener, android.view.View.OnLongClickListener, android.view.View.OnScrollChangeListener, android.view.View.OnSystemUiVisibilityChangeListener, android.view.View.OnTouchListener, android.view.View.OnUnhandledKeyEventListenerFOCUS_AFTER_DESCENDANTS, FOCUS_BEFORE_DESCENDANTS, FOCUS_BLOCK_DESCENDANTS, LAYOUT_MODE_CLIP_BOUNDS, LAYOUT_MODE_OPTICAL_BOUNDS, PERSISTENT_ALL_CACHES, PERSISTENT_ANIMATION_CACHE, PERSISTENT_NO_CACHE, PERSISTENT_SCROLLING_CACHEACCESSIBILITY_LIVE_REGION_ASSERTIVE, ACCESSIBILITY_LIVE_REGION_NONE, ACCESSIBILITY_LIVE_REGION_POLITE, ALPHA, AUTOFILL_FLAG_INCLUDE_NOT_IMPORTANT_VIEWS, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR, AUTOFILL_HINT_CREDIT_CARD_NUMBER, AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE, AUTOFILL_HINT_EMAIL_ADDRESS, AUTOFILL_HINT_NAME, AUTOFILL_HINT_PASSWORD, AUTOFILL_HINT_PHONE, AUTOFILL_HINT_POSTAL_ADDRESS, AUTOFILL_HINT_POSTAL_CODE, AUTOFILL_HINT_USERNAME, AUTOFILL_TYPE_DATE, AUTOFILL_TYPE_LIST, AUTOFILL_TYPE_NONE, AUTOFILL_TYPE_TEXT, AUTOFILL_TYPE_TOGGLE, DRAG_FLAG_GLOBAL, DRAG_FLAG_GLOBAL_PERSISTABLE_URI_PERMISSION, DRAG_FLAG_GLOBAL_PREFIX_URI_PERMISSION, DRAG_FLAG_GLOBAL_URI_READ, DRAG_FLAG_GLOBAL_URI_WRITE, DRAG_FLAG_OPAQUE, DRAWING_CACHE_QUALITY_AUTO, DRAWING_CACHE_QUALITY_HIGH, DRAWING_CACHE_QUALITY_LOW, FIND_VIEWS_WITH_CONTENT_DESCRIPTION, FIND_VIEWS_WITH_TEXT, FOCUS_BACKWARD, FOCUS_DOWN, FOCUS_FORWARD, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_UP, FOCUSABLE, FOCUSABLE_AUTO, FOCUSABLES_ALL, FOCUSABLES_TOUCH_MODE, GONE, HAPTIC_FEEDBACK_ENABLED, IMPORTANT_FOR_ACCESSIBILITY_AUTO, IMPORTANT_FOR_ACCESSIBILITY_NO, IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS, IMPORTANT_FOR_ACCESSIBILITY_YES, IMPORTANT_FOR_AUTOFILL_AUTO, IMPORTANT_FOR_AUTOFILL_NO, IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS, IMPORTANT_FOR_AUTOFILL_YES, IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS, IMPORTANT_FOR_CONTENT_CAPTURE_AUTO, IMPORTANT_FOR_CONTENT_CAPTURE_NO, IMPORTANT_FOR_CONTENT_CAPTURE_NO_EXCLUDE_DESCENDANTS, IMPORTANT_FOR_CONTENT_CAPTURE_YES, IMPORTANT_FOR_CONTENT_CAPTURE_YES_EXCLUDE_DESCENDANTS, INVISIBLE, KEEP_SCREEN_ON, LAYER_TYPE_HARDWARE, LAYER_TYPE_NONE, LAYER_TYPE_SOFTWARE, LAYOUT_DIRECTION_INHERIT, LAYOUT_DIRECTION_LOCALE, LAYOUT_DIRECTION_LTR, LAYOUT_DIRECTION_RTL, MEASURED_HEIGHT_STATE_SHIFT, MEASURED_SIZE_MASK, MEASURED_STATE_MASK, MEASURED_STATE_TOO_SMALL, NO_ID, NOT_FOCUSABLE, OVER_SCROLL_ALWAYS, OVER_SCROLL_IF_CONTENT_SCROLLS, OVER_SCROLL_NEVER, ROTATION, ROTATION_X, ROTATION_Y, SCALE_X, SCALE_Y, SCREEN_STATE_OFF, SCREEN_STATE_ON, SCROLL_AXIS_HORIZONTAL, SCROLL_AXIS_NONE, SCROLL_AXIS_VERTICAL, SCROLL_CAPTURE_HINT_AUTO, SCROLL_CAPTURE_HINT_EXCLUDE, SCROLL_CAPTURE_HINT_EXCLUDE_DESCENDANTS, SCROLL_CAPTURE_HINT_INCLUDE, SCROLL_INDICATOR_BOTTOM, SCROLL_INDICATOR_END, SCROLL_INDICATOR_LEFT, SCROLL_INDICATOR_RIGHT, SCROLL_INDICATOR_START, SCROLL_INDICATOR_TOP, SCROLLBAR_POSITION_DEFAULT, SCROLLBAR_POSITION_LEFT, SCROLLBAR_POSITION_RIGHT, SCROLLBARS_INSIDE_INSET, SCROLLBARS_INSIDE_OVERLAY, SCROLLBARS_OUTSIDE_INSET, SCROLLBARS_OUTSIDE_OVERLAY, SOUND_EFFECTS_ENABLED, STATUS_BAR_HIDDEN, STATUS_BAR_VISIBLE, SYSTEM_UI_FLAG_FULLSCREEN, SYSTEM_UI_FLAG_HIDE_NAVIGATION, SYSTEM_UI_FLAG_IMMERSIVE, SYSTEM_UI_FLAG_IMMERSIVE_STICKY, SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN, SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION, SYSTEM_UI_FLAG_LAYOUT_STABLE, SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR, SYSTEM_UI_FLAG_LIGHT_STATUS_BAR, SYSTEM_UI_FLAG_LOW_PROFILE, SYSTEM_UI_FLAG_VISIBLE, SYSTEM_UI_LAYOUT_FLAGS, TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_GRAVITY, TEXT_ALIGNMENT_INHERIT, TEXT_ALIGNMENT_TEXT_END, TEXT_ALIGNMENT_TEXT_START, TEXT_ALIGNMENT_VIEW_END, TEXT_ALIGNMENT_VIEW_START, TEXT_DIRECTION_ANY_RTL, TEXT_DIRECTION_FIRST_STRONG, TEXT_DIRECTION_FIRST_STRONG_LTR, TEXT_DIRECTION_FIRST_STRONG_RTL, TEXT_DIRECTION_INHERIT, TEXT_DIRECTION_LOCALE, TEXT_DIRECTION_LTR, TEXT_DIRECTION_RTL, TRANSLATION_X, TRANSLATION_Y, TRANSLATION_Z, VISIBLE, X, Y, Z| Constructor and Description | 
|---|
CPDFReaderView(android.content.Context context)  | 
CPDFReaderView(android.content.Context context,
              android.util.AttributeSet attrs)  | 
CPDFReaderView(android.content.Context context,
              android.util.AttributeSet attrs,
              int defStyleAttr)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
clearInkOperation()
Clears ink annotation entity of all page index. 
 | 
android.graphics.PointF | 
convertPointFromPage(CPDFPage pdfPage,
                    float px,
                    float py)
Convert page coordinates to screen coordinates. 
 | 
android.graphics.PointF | 
convertPointToPage(float ex,
                  float ey)
Convert screen coordinates to page coordinates. 
 | 
void | 
dismissMagnifierWindow()
Dismiss magnifier window 
 | 
boolean | 
dispatchTouchEvent(android.view.MotionEvent ev)  | 
CPDFAnnotImplRegistry | 
getAnnotImplRegistry()
Gets registry, you can register custom annotation display entity and custom annotation addition class by registry, more:  
CPDFAnnotImplRegistry | 
IContextMenuShowListener | 
getContextMenuShowListener()
Gets the show and hidden entity of context menu. 
 | 
CPDFWidget.WidgetType | 
getCurrentFocusedFormType()
1.Browse mode: get the focused form type. 
 | 
CPDFAnnotation.Type | 
getCurrentFocusedType()
1.Browse mode: get the focused annotation type. 
 | 
CPDFEditManager | 
getEditManager()
Get edit manager instance. 
 | 
CPDFEditTextSearchReplace | 
getEditTextSearchReplace()
Get edit text search replace entity, more: 
CPDFEditTextSearchReplace | 
IInkDrawCallback | 
getInkDrawCallbackForPage(int pageNum)
Gets the ink annotation entity of the corresponding page index. 
 | 
android.util.SparseArray<IInkDrawCallback> | 
getInkDrawCallbacks()
Gets all ink annotation entity. 
 | 
CPDFReaderView.TInkDrawHelper | 
getInkDrawHelper()
Gets the drawing helper of Ink annotation, more:  
CPDFReaderView.TInkDrawHelper | 
int | 
getLoadType()
Get load type in edit mode. 
 | 
CPDFAddAnnotCallback | 
getPdfAddAnnotCallback()
Gets a callback of the annotation addition for the reader view, more:  
CPDFAddAnnotCallback | 
IPDFErrorMessageCallback | 
getPdfErrorMessageCallback()
Gets the error callback registered for the reader view, more:  
IPDFErrorMessageCallback | 
CPDFReaderAttribute | 
getReaderAttribute()
Gets reader attribute,more:  
CPDFReaderAttribute | 
int | 
getSelectAreaType()
Get the selected edit area type. 
 | 
ITextSearcher | 
getTextSearcher()
Gets text search entity, more:  
ITextSearcher, CPDFTextSearcher | 
CPDFReaderView.TouchMode | 
getTouchMode()
Gets the reader mode, more:  
CPDFReaderView.TouchMode | 
CPDFUndoManager | 
getUndoManager()
Gets undo manager instance for performing undo/redo operations of edits. 
 | 
CPDFReaderView.ViewMode | 
getViewMode()
Get view mode. 
 | 
boolean | 
isFormFieldHighlight()
Whether to display highlight Form Field. 
 | 
boolean | 
isLinkHighlight()
Whether to display highlight Link. 
 | 
boolean | 
isSearchingKeyword()
Whether it is searching keyword. 
 | 
void | 
loadReaderAttribute()
Loads the attribute of reader automatically. 
 | 
void | 
onAnnotationChanged(CPDFAnnotation annotation,
                   int pageNum)  | 
void | 
onAnnotationChanged(long annotPtr,
                   CPDFAnnotationUndoAttr annotationAttr,
                   int pageNum)  | 
void | 
onEditRedo()
Redo callback. 
 | 
void | 
onEditUndo()
Undo callback 
 | 
boolean | 
onInterceptTouchEvent(android.view.MotionEvent ev)  | 
void | 
onLongPress(android.view.MotionEvent e)  | 
boolean | 
onScaleBegin(CustomScaleGesture detector)
Responds to the beginning of a scaling gesture. 
 | 
void | 
onScaleEnd(CustomScaleGesture detector)
Responds to the end of a scale gesture. 
 | 
boolean | 
onSingleTapUp(android.view.MotionEvent e)  | 
boolean | 
onTouchEvent(android.view.MotionEvent event)  | 
boolean | 
refreshSignatureWidget(CPDFSignatureWidget signatureWidget)
Refresh AP of the signature widget. 
 | 
void | 
reloadPages()
Reloads all pages 
 | 
void | 
reloadPages(java.util.List<java.lang.Integer> updateHQApPageList)
重新加载所有页面. 
 | 
void | 
removeAllAnnotFocus()
Removes annotation focus in all pages. 
 | 
void | 
saveReaderAttribute()
Stores the attribute of reader automatically. 
 | 
void | 
setAutoRestoreAttr(boolean isAuto)
Sets whether to save annotation attribute automatically. 
 | 
void | 
setCanModifyWhenAddAnnot(boolean canModifyWhenAddAnnot)
Sets whether it can select other annotation and edit it in annotation add mode. 
 | 
void | 
setCanSelectTextInViewMode(boolean select)
Set whether can select text in view mode. 
 | 
void | 
setContextMenuShowListener(IContextMenuShowListener contextMenuShowListener)
Sets the show and hidden entity of context menu. 
 | 
void | 
setCurrentFocusedFormType(CPDFWidget.WidgetType currentFocusedFormType)
In the annotation addition mode, set the added form type. 
 | 
void | 
setCurrentFocusedType(CPDFAnnotation.Type type)
In the annotation addition mode, set the annotation type of the current focus. 
 | 
void | 
setFixedScroll(boolean isFixedScroll)
Sets whether to fix the position of the non-swipe direction when zooming in for reading. 
 | 
void | 
setFixReaderViewHorizontalMargin(boolean fix)
Set whether fix the margin from the left and right viewer container of the page. 
 | 
void | 
setFormFieldHighlight(boolean isFormFieldHighlight)
Sets whether to display highlight Form Field. 
 | 
void | 
setLinkHighlight(boolean isLinkHighlight)
Sets whether to display highlight Link. 
 | 
void | 
setLoadType(int type)
Set load type in edit mode. 
 | 
void | 
setMagnifierOffsetX(int magnifierOffsetX)
Set the display x-position  offset value of the magnifier. 
 | 
void | 
setMagnifierOffsetY(int magnifierOffsetY)
Set the display y-position  offset value of the magnifier. 
 | 
void | 
setMagnifierSize(int size)
Set the magnifier size. 
 | 
void | 
setOnFocusedTypeChangedListener(OnFocusedTypeChangedListener onFocusedTypeChangedListener)
Registers a callback to be invoked when the focused annotation is changed, more: 
OnFocusedTypeChangedListener | 
void | 
setOnTouchModeChangedListener(OnTouchModeChangedListener onTouchModeChangedListener)
Registers a callback to be invoked when touch mode is changed, more:  
OnTouchModeChangedListener | 
void | 
setOnViewModeChangedListener(OnViewModeChangedListener onViewModeChangedListener)
Registers a callback to be invoked when view mode is changed, more: 
OnViewModeChangedListener | 
void | 
setPageSameWidth(boolean isSame)
In the single page mode, set whether all pages keep the same width and the original page keeps the same width as readerView 
 | 
void | 
setPageSpacing(int spacing)
Sets the spacing between pages 
 | 
void | 
setPdfAddAnnotCallback(CPDFAddAnnotCallback pdfAddAnnotCallback)
Registers a callback to be invoked when adding annotation, more:  
CPDFAddAnnotCallback | 
void | 
setPdfErrorMessageCallback(IPDFErrorMessageCallback pdfErrorMessageCallback)
Registers a callback to be invoked when this reader view is operated, more:  
IPDFErrorMessageCallback | 
void | 
setReaderViewBottomMargin(int bottom)
Sets the distance of the margin from the bottom viewer container of the page. 
 | 
void | 
setReaderViewHorizontalMargin(int margin)
Sets the distance of the margin from the left and right viewer container of the page. 
 | 
void | 
setReaderViewHorizontalMargin(int left,
                             int right)  | 
void | 
setReaderViewTopMargin(int top)
Sets the distance of the margin from the top viewer container of the page. 
 | 
void | 
setReadViewOffsetY(int height)
The readview slides for a distance to prevent the selected edit area or annotation obstructed. 
 | 
void | 
setSearchingKeyword(boolean searchingKeyword)
Sets whether it is searching text currently 
 | 
void | 
setTextSearcher(ITextSearcher textSearcher)
Sets text search entity, more:  
ITextSearcher | 
void | 
setTouchMode(CPDFReaderView.TouchMode touchMode)
Sets the reader mode,more:  
CPDFReaderView.TouchMode | 
void | 
setViewMode(CPDFReaderView.ViewMode viewMode)
Set view mode. 
 | 
void | 
showMagnifierWindow()
Show magnifier window 
 | 
void | 
showSearchReplaceContextMenu()
Show the context menu of selected search result after searching text in edit mode. 
 | 
void | 
updateInkOperation(int pageNum,
                  IInkDrawCallback inkDrawCallback)
Updates the ink annotation entity of the corresponding page index. 
 | 
void | 
updateMagnifier(float x,
               float y)
update magnifier 
 | 
void | 
updateMagnifier(float x,
               float y,
               float marginLeft,
               float marginTop)
update magnifier 
 | 
cancelJob, computeScroll, equeueJob, getAddImagePage, getAddImagePoint, getChild, getContentHeight, getContentWidth, getInputConnection, getPageCount, getPageNoZoomSize, getPageNum, getPageSize, getPDFDocument, getPDFScale, getReadBackgroundColor, getScale, getScaleMax, getScaleMin, getSelectEditAreaChangeListener, invalidateAllChildren, invalidateChild, invalidateChildAp, invalidateChildrenAp, isContinueMode, isCoverPageMode, isCropMode, isDoublePageMode, isPageInScreen, isVerticalMode, onCheckIsTextEditor, onCreateInputConnection, onDown, onDragEnd, onDragging, onFling, onFling, onFlingEnd, onJumpEnd, onJumping, onKey, onKeyboardComposingText, onKeyboardDelete, onKeyboardDown, onKeyboardLeft, onKeyboardRight, onKeyboardSection, onKeyboardTextInput, onKeyboardUp, onNoScroll, onScale, onScroll, onShowPress, onViewRemoved, pauseAllRenderProcess, removeHQApListIndex, setAddImagePage, setAddImagePoint, setCanScale, setContinueMode, setCoverPageMode, setCropMode, setDisplayPageIndex, setDisplayPageIndex, setDisplayPageIndex, setDisplayPageIndex, setDocumentStatusCallback, setDoublePageMode, setEditAreaMoving, setMinScaleEnable, setPDFDocument, setReadBackgroundColor, setReaderViewCallback, setScale, setSelectEditAreaChangeListener, setVerticalModeaddChildrenForAccessibility, addExtraDataToAccessibilityNodeInfo, addFocusables, addKeyboardNavigationClusters, addStatesFromChildren, addTouchables, addView, addView, addView, addView, addView, bringChildToFront, childDrawableStateChanged, childHasTransientStateChanged, clearChildFocus, clearDisappearingChildren, clearFocus, dispatchApplyWindowInsets, dispatchCapturedPointerEvent, dispatchConfigurationChanged, dispatchCreateViewTranslationRequest, dispatchDisplayHint, dispatchDragEvent, dispatchDrawableHotspotChanged, dispatchFinishTemporaryDetach, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchPointerCaptureChanged, dispatchProvideAutofillStructure, dispatchProvideStructure, dispatchScrollCaptureSearch, dispatchSetActivated, dispatchSetSelected, dispatchStartTemporaryDetach, dispatchSystemUiVisibilityChanged, dispatchTrackballEvent, dispatchUnhandledMove, dispatchWindowFocusChanged, dispatchWindowInsetsAnimationEnd, dispatchWindowInsetsAnimationPrepare, dispatchWindowInsetsAnimationProgress, dispatchWindowInsetsAnimationStart, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, endViewTransition, findFocus, findViewsWithText, focusableViewAvailable, focusSearch, gatherTransparentRegion, generateLayoutParams, getAccessibilityClassName, getChildAt, getChildCount, getChildDrawingOrder, getChildMeasureSpec, getChildVisibleRect, getClipChildren, getClipToPadding, getDescendantFocusability, getFocusedChild, getLayoutAnimation, getLayoutAnimationListener, getLayoutMode, getLayoutTransition, getNestedScrollAxes, getOverlay, getPersistentDrawingCache, getTouchscreenBlocksFocus, hasFocus, hasTransientState, indexOfChild, invalidateChild, invalidateChildInParent, isAlwaysDrawnWithCacheEnabled, isAnimationCacheEnabled, isLayoutSuppressed, isMotionEventSplittingEnabled, isTransitionGroup, jumpDrawablesToCurrentState, layout, notifySubtreeAccessibilityStateChanged, offsetDescendantRectToMyCoords, offsetRectIntoDescendantCoords, onDescendantInvalidated, onInterceptHoverEvent, onNestedFling, onNestedPreFling, onNestedPrePerformAccessibilityAction, onNestedPreScroll, onNestedScroll, onNestedScrollAccepted, onRequestSendAccessibilityEvent, onResolvePointerIcon, onStartNestedScroll, onStopNestedScroll, onViewAdded, recomputeViewAttributes, removeAllViews, removeAllViewsInLayout, removeView, removeViewAt, removeViewInLayout, removeViews, removeViewsInLayout, requestChildFocus, requestChildRectangleOnScreen, requestDisallowInterceptTouchEvent, requestFocus, requestSendAccessibilityEvent, requestTransparentRegion, restoreDefaultFocus, scheduleLayoutAnimation, setAddStatesFromChildren, setAlwaysDrawnWithCacheEnabled, setAnimationCacheEnabled, setClipChildren, setClipToPadding, setDescendantFocusability, setLayoutAnimation, setLayoutAnimationListener, setLayoutMode, setLayoutTransition, setMotionEventSplittingEnabled, setOnHierarchyChangeListener, setPersistentDrawingCache, setTouchscreenBlocksFocus, setTransitionGroup, setWindowInsetsAnimationCallback, shouldDelayChildPressedState, showContextMenuForChild, showContextMenuForChild, startActionModeForChild, startActionModeForChild, startLayoutAnimation, startViewTransition, suppressLayout, updateViewLayoutaddFocusables, addOnAttachStateChangeListener, addOnLayoutChangeListener, addOnUnhandledKeyEventListener, animate, announceForAccessibility, autofill, autofill, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, cancelDragAndDrop, cancelLongPress, cancelPendingInputEvents, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, checkInputConnectionProxy, clearAnimation, clearViewTranslationCallback, combineMeasuredStates, computeSystemWindowInsets, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchGenericMotionEvent, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPrePerformAccessibilityAction, dispatchNestedPreScroll, dispatchNestedScroll, dispatchPopulateAccessibilityEvent, draw, drawableHotspotChanged, findViewById, findViewWithTag, focusSearch, forceHasOverlappingRendering, forceLayout, generateDisplayHash, generateViewId, getAccessibilityDelegate, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAccessibilityPaneTitle, getAccessibilityTraversalAfter, getAccessibilityTraversalBefore, getAlpha, getAnimation, getAnimationMatrix, getApplicationWindowToken, getAttributeResolutionStack, getAttributeSourceResourceMap, getAutofillHints, getAutofillId, getAutofillType, getAutofillValue, getBackground, getBackgroundTintBlendMode, getBackgroundTintList, getBackgroundTintMode, getBaseline, getBottom, getCameraDistance, getClipBounds, getClipBounds, getClipToOutline, getContentCaptureSession, getContentDescription, getContext, getDefaultFocusHighlightEnabled, getDefaultSize, getDisplay, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getElevation, getExplicitStyle, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusable, getFocusables, getFocusedRect, getForeground, getForegroundGravity, getForegroundTintBlendMode, getForegroundTintList, getForegroundTintMode, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHasOverlappingRendering, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarThumbDrawable, getHorizontalScrollbarTrackDrawable, getId, getImportantForAccessibility, getImportantForAutofill, getImportantForContentCapture, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLocalVisibleRect, getLocationInSurface, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextClusterForwardId, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOutlineAmbientShadowColor, getOutlineProvider, getOutlineSpotShadowColor, getOverScrollMode, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getPointerIcon, getReceiveContentMimeTypes, getResources, getRevealOnFocusHint, getRight, getRootSurfaceControl, getRootView, getRootWindowInsets, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollCaptureHint, getScrollIndicators, getScrollX, getScrollY, getSolidColor, getSourceLayoutResId, getStateDescription, getStateListAnimator, getSystemGestureExclusionRects, getSystemUiVisibility, getTag, getTag, getTextAlignment, getTextDirection, getTooltipText, getTop, getTouchables, getTouchDelegate, getTransitionAlpha, getTransitionName, getTranslationX, getTranslationY, getTranslationZ, getUniqueDrawingId, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarThumbDrawable, getVerticalScrollbarTrackDrawable, getVerticalScrollbarWidth, getViewTranslationResponse, getViewTreeObserver, getVisibility, getWidth, getWindowId, getWindowInsetsController, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, getZ, hasExplicitFocusable, hasFocusable, hasNestedScrollingParent, hasOnClickListeners, hasOnLongClickListeners, hasOverlappingRendering, hasPointerCapture, hasWindowFocus, inflate, invalidate, invalidate, invalidate, invalidateDrawable, invalidateOutline, isAccessibilityFocused, isAccessibilityHeading, isActivated, isAttachedToWindow, isClickable, isContextClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isFocusedByDefault, isForceDarkAllowed, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isImportantForAccessibility, isImportantForAutofill, isImportantForContentCapture, isInEditMode, isInLayout, isInTouchMode, isKeyboardNavigationCluster, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isNestedScrollingEnabled, isOpaque, isPaddingRelative, isPivotSet, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScreenReaderFocusable, isScrollbarFadingEnabled, isScrollContainer, isSelected, isShowingLayoutBounds, isShown, isSoundEffectsEnabled, isTemporarilyDetached, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, isVisibleToUserForAutofill, keyboardNavigationClusterSearch, measure, offsetLeftAndRight, offsetTopAndBottom, onApplyWindowInsets, onCancelPendingInputEvents, onCapturedPointerEvent, onCreateViewTranslationRequest, onCreateVirtualViewTranslationRequests, onDragEvent, onDrawForeground, onFilterTouchEventForSecurity, onFinishTemporaryDetach, onGenericMotionEvent, onHoverChanged, onHoverEvent, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onPointerCaptureChange, onPopulateAccessibilityEvent, onProvideAutofillStructure, onProvideAutofillVirtualStructure, onProvideContentCaptureStructure, onProvideStructure, onProvideVirtualStructure, onReceiveContent, onRtlPropertiesChanged, onScreenStateChanged, onScrollCaptureSearch, onStartTemporaryDetach, onTrackballEvent, onViewTranslationResponse, onVirtualViewTranslationResponses, onVisibilityAggregated, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, performAccessibilityAction, performClick, performContextClick, performContextClick, performHapticFeedback, performHapticFeedback, performLongClick, performLongClick, performReceiveContent, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, releasePointerCapture, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, removeOnUnhandledKeyEventListener, requestApplyInsets, requestFitSystemWindows, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestPointerCapture, requestRectangleOnScreen, requestRectangleOnScreen, requestUnbufferedDispatch, requestUnbufferedDispatch, requireViewById, resetPivot, resolveSize, resolveSizeAndState, restoreHierarchyState, saveAttributeDataForStyleable, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setAccessibilityHeading, setAccessibilityLiveRegion, setAccessibilityPaneTitle, setAccessibilityTraversalAfter, setAccessibilityTraversalBefore, setActivated, setAllowClickWhenDisabled, setAlpha, setAnimation, setAnimationMatrix, setAutofillHints, setAutofillId, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBackgroundTintBlendMode, setBackgroundTintList, setBackgroundTintMode, setBottom, setCameraDistance, setClickable, setClipBounds, setClipToOutline, setContentCaptureSession, setContentDescription, setContextClickable, setDefaultFocusHighlightEnabled, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setElevation, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusable, setFocusableInTouchMode, setFocusedByDefault, setForceDarkAllowed, setForeground, setForegroundGravity, setForegroundTintBlendMode, setForegroundTintList, setForegroundTintMode, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHorizontalScrollbarThumbDrawable, setHorizontalScrollbarTrackDrawable, setHovered, setId, setImportantForAccessibility, setImportantForAutofill, setImportantForContentCapture, setKeepScreenOn, setKeyboardNavigationCluster, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setLayoutParams, setLeft, setLeftTopRightBottom, setLongClickable, setMinimumHeight, setMinimumWidth, setNestedScrollingEnabled, setNextClusterForwardId, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnApplyWindowInsetsListener, setOnCapturedPointerListener, setOnClickListener, setOnContextClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnReceiveContentListener, setOnScrollChangeListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOutlineAmbientShadowColor, setOutlineProvider, setOutlineSpotShadowColor, setOverScrollMode, setPadding, setPaddingRelative, setPivotX, setPivotY, setPointerIcon, setPressed, setRenderEffect, setRevealOnFocusHint, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScreenReaderFocusable, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollbarFadingEnabled, setScrollBarSize, setScrollBarStyle, setScrollCaptureCallback, setScrollCaptureHint, setScrollContainer, setScrollIndicators, setScrollIndicators, setScrollX, setScrollY, setSelected, setSoundEffectsEnabled, setStateDescription, setStateListAnimator, setSystemGestureExclusionRects, setSystemUiVisibility, setTag, setTag, setTextAlignment, setTextDirection, setTooltipText, setTop, setTouchDelegate, setTransitionAlpha, setTransitionName, setTransitionVisibility, setTranslationX, setTranslationY, setTranslationZ, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVerticalScrollbarThumbDrawable, setVerticalScrollbarTrackDrawable, setViewTranslationCallback, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, setZ, showContextMenu, showContextMenu, startActionMode, startActionMode, startAnimation, startDrag, startDragAndDrop, startNestedScroll, stopNestedScroll, toString, transformMatrixToGlobal, transformMatrixToLocal, unscheduleDrawable, unscheduleDrawable, updateDragShadow, willNotCacheDrawing, willNotDrawequals, getClass, hashCode, notify, notifyAll, wait, wait, waitcanResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, createContextMenu, getLayoutDirection, getParent, getParentForAccessibility, getTextAlignment, getTextDirection, isLayoutDirectionResolved, isLayoutRequested, isTextAlignmentResolved, isTextDirectionResolved, keyboardNavigationClusterSearch, requestFitSystemWindows, requestLayoutpublic CPDFReaderView(android.content.Context context)
public CPDFReaderView(android.content.Context context,
                      android.util.AttributeSet attrs)
public CPDFReaderView(android.content.Context context,
                      android.util.AttributeSet attrs,
                      int defStyleAttr)
public void setLoadType(int type)
type - Load type.public int getLoadType()
public CPDFAnnotImplRegistry getAnnotImplRegistry()
CPDFAnnotImplRegistry
 Annotation display entity extends fromCPDFAnnotImpl
 
Annotation addition class extends fromIAnnotAttachHelper
public void setCurrentFocusedType(CPDFAnnotation.Type type)
type - TouchEvent Touch mode in the reader viewpublic CPDFAnnotation.Type getCurrentFocusedType()
public CPDFWidget.WidgetType getCurrentFocusedFormType()
public void setCurrentFocusedFormType(CPDFWidget.WidgetType currentFocusedFormType)
currentFocusedFormType - Form type.public CPDFReaderView.TouchMode getTouchMode()
CPDFReaderView.TouchModeCPDFReaderView.TouchModepublic void setTouchMode(CPDFReaderView.TouchMode touchMode)
CPDFReaderView.TouchModetouchMode - Reader mode, more: CPDFReaderView.TouchModepublic CPDFReaderView.ViewMode getViewMode()
public void setViewMode(CPDFReaderView.ViewMode viewMode)
CPDFReaderView.ViewModeviewMode - View mode. More CPDFReaderView.ViewModepublic android.graphics.PointF convertPointToPage(float ex,
                                                  float ey)
ex - The x-value of the screen coordinates.ey - The y-value of the screen coordinates.public android.graphics.PointF convertPointFromPage(CPDFPage pdfPage, float px, float py)
pdfPage - CPDFPage Object.px - The x-value of page coordinates.py - The y-value of page coordinates.public void setAutoRestoreAttr(boolean isAuto)
isAuto - true: Save it automatically; false: Do not save it automatically; Set true by defaultpublic void setPageSameWidth(boolean isSame)
isSame - true: All pages keep the same width, the original state keeps the same width as readerView; false: Show in the actual width of pagepublic void setFixedScroll(boolean isFixedScroll)
isFixedScroll - true: fixed position; false: not fixed position; Set false by defaultpublic void setReaderViewTopMargin(int top)
top - Distance of the margin from the top side (units px)public void setReaderViewBottomMargin(int bottom)
bottom - Distance of the margin from the bottom viewer  container(units px)public void setReaderViewHorizontalMargin(int margin)
margin - Distance of the margin from the left and right viewer container(units px)public void setReaderViewHorizontalMargin(int left,
                                          int right)
public void setFixReaderViewHorizontalMargin(boolean fix)
fix - Whether fix.public void setCanSelectTextInViewMode(boolean select)
select - Whether can select text.public void loadReaderAttribute()
public void saveReaderAttribute()
public IContextMenuShowListener getContextMenuShowListener()
public void setContextMenuShowListener(IContextMenuShowListener contextMenuShowListener)
contextMenuShowListener - The show and hidden entity of context.public CPDFReaderView.TInkDrawHelper getInkDrawHelper()
CPDFReaderView.TInkDrawHelperCPDFReaderView.TInkDrawHelperpublic void updateInkOperation(int pageNum,
                               IInkDrawCallback inkDrawCallback)
pageNum - Page index.inkDrawCallback - ink annotationpublic IInkDrawCallback getInkDrawCallbackForPage(int pageNum)
pageNum - Page index.public android.util.SparseArray<IInkDrawCallback> getInkDrawCallbacks()
public void clearInkOperation()
public void setLinkHighlight(boolean isLinkHighlight)
isLinkHighlight - Whether to highlight Link.public boolean isLinkHighlight()
public boolean isFormFieldHighlight()
public void setFormFieldHighlight(boolean isFormFieldHighlight)
isFormFieldHighlight - Whether to highlight Form Field.public CPDFReaderAttribute getReaderAttribute()
CPDFReaderAttributeCPDFReaderAttributepublic ITextSearcher getTextSearcher()
ITextSearcher, CPDFTextSearcherpublic CPDFEditTextSearchReplace getEditTextSearchReplace()
CPDFEditTextSearchReplacepublic CPDFUndoManager getUndoManager()
CPDFReaderView.public CPDFEditManager getEditManager()
public IPDFErrorMessageCallback getPdfErrorMessageCallback()
IPDFErrorMessageCallbackpublic void setPdfErrorMessageCallback(IPDFErrorMessageCallback pdfErrorMessageCallback)
IPDFErrorMessageCallbackpdfErrorMessageCallback - Error callback interface of reader operation, more: IPDFErrorMessageCallbackpublic CPDFAddAnnotCallback getPdfAddAnnotCallback()
CPDFAddAnnotCallbackpublic void setPdfAddAnnotCallback(CPDFAddAnnotCallback pdfAddAnnotCallback)
CPDFAddAnnotCallbackpdfAddAnnotCallback - Add the listener of annotation, more: CPDFAddAnnotCallbackpublic void setTextSearcher(ITextSearcher textSearcher)
ITextSearchertextSearcher - Text search interface entity entity.public boolean isSearchingKeyword()
public void setSearchingKeyword(boolean searchingKeyword)
searchingKeyword - Whether it is searching keyword currentlypublic void setOnFocusedTypeChangedListener(OnFocusedTypeChangedListener onFocusedTypeChangedListener)
OnFocusedTypeChangedListeneronFocusedTypeChangedListener - more: OnFocusedTypeChangedListenerpublic void setOnTouchModeChangedListener(OnTouchModeChangedListener onTouchModeChangedListener)
OnTouchModeChangedListeneronTouchModeChangedListener - Touch mode listener, more: OnTouchModeChangedListenerpublic void setOnViewModeChangedListener(OnViewModeChangedListener onViewModeChangedListener)
OnViewModeChangedListeneronViewModeChangedListener - View mode listener, more:OnViewModeChangedListenerpublic void setCanModifyWhenAddAnnot(boolean canModifyWhenAddAnnot)
canModifyWhenAddAnnot - Whether can select other annotation and edit it in annotation add mode.public void removeAllAnnotFocus()
public void setPageSpacing(int spacing)
spacing - the spacing between pagespublic void setMagnifierSize(int size)
size - Magnifier size.public void setMagnifierOffsetX(int magnifierOffsetX)
magnifierOffsetX - X-position offset.public void setMagnifierOffsetY(int magnifierOffsetY)
magnifierOffsetY - Y-position offset.public void showMagnifierWindow()
public void dismissMagnifierWindow()
public void onEditUndo()
public void onEditRedo()
public int getSelectAreaType()
public void setReadViewOffsetY(int height)
height - public void updateMagnifier(float x,
                            float y,
                            float marginLeft,
                            float marginTop)
x - The x coordinate on the ReaderViewery - The y coordinate on the ReaderViewermarginLeft - The left margin base on x coordinatemarginTop - The top margin base on y coordinatepublic void updateMagnifier(float x,
                            float y)
x - The x coordinate on the ReaderViewery - The y coordinate on the ReaderViewerpublic boolean onInterceptTouchEvent(android.view.MotionEvent ev)
onInterceptTouchEvent in class ReaderViewpublic boolean dispatchTouchEvent(android.view.MotionEvent ev)
dispatchTouchEvent in class android.view.ViewGrouppublic boolean onTouchEvent(android.view.MotionEvent event)
onTouchEvent in class ReaderViewpublic boolean onScaleBegin(CustomScaleGesture detector)
CustomScaleGesture.OnScaleGestureListeneronScaleBegin in interface CustomScaleGesture.OnScaleGestureListeneronScaleBegin in class ReaderViewdetector - The detector reporting the event - use this to
                 retrieve extended info about event state.public boolean onSingleTapUp(android.view.MotionEvent e)
onSingleTapUp in interface android.view.GestureDetector.OnGestureListeneronSingleTapUp in class ReaderViewpublic void onScaleEnd(CustomScaleGesture detector)
CustomScaleGesture.OnScaleGestureListener
 Once a scale has ended, ScaleGestureDetector.getFocusX()
 and ScaleGestureDetector.getFocusY() will return focal point
 of the pointers remaining on the screen.
onScaleEnd in interface CustomScaleGesture.OnScaleGestureListeneronScaleEnd in class ReaderViewdetector - The detector reporting the event - use this to
                 retrieve extended info about event state.public void onLongPress(android.view.MotionEvent e)
onLongPress in interface android.view.GestureDetector.OnGestureListeneronLongPress in class ReaderViewpublic void reloadPages()
ReaderView Reloads all pages in the following situation:
 1.After setting the crop mode
 2.Page editing: delete page, move page, exchange page, add page
 3.After reloading document, CPDFDocument.reload() or CPDFDocument.reload(String)
reloadPages in class ReaderViewpublic void reloadPages(java.util.List<java.lang.Integer> updateHQApPageList)
reloadPages in class ReaderViewupdateHQApPageList - 页面list. updateHQApPageList中的页面一定更新AP,其它页面当没有scale时不会更新AP.public void onAnnotationChanged(CPDFAnnotation annotation, int pageNum)
onAnnotationChanged in interface OnAnnotationChangedListenerpublic void onAnnotationChanged(long annotPtr,
                                CPDFAnnotationUndoAttr annotationAttr,
                                int pageNum)
onAnnotationChanged in interface OnAnnotationChangedListenerpublic boolean refreshSignatureWidget(CPDFSignatureWidget signatureWidget)
signatureWidget - The signature widget to refresh.public void showSearchReplaceContextMenu()