Show / Hide Table of Contents

Class DocumentView2

Inheritance
System.Object
DocumentView2
Implements
PdfViewCtrlTabHostFragment2.ITabHostListener
PdfViewCtrlTabHostBaseFragment.ITabHostListener
Android.Runtime.IJavaObject
System.IDisposable
Java.Interop.IJavaPeerable
Namespace: pdftron.PDF.Controls
Assembly: PDFViewCtrlTools.dll
Syntax
public class DocumentView2 : FrameLayout, PdfViewCtrlTabHostFragment2.ITabHostListener, PdfViewCtrlTabHostBaseFragment.ITabHostListener

Constructors

DocumentView2(Context)

Declaration
public DocumentView2(Context context)
Parameters
Type Name Description
Android.Content.Context context

DocumentView2(Context, IAttributeSet)

Declaration
public DocumentView2(Context context, IAttributeSet attrs)
Parameters
Type Name Description
Android.Content.Context context
Android.Util.IAttributeSet attrs

DocumentView2(Context, IAttributeSet, Int32)

Declaration
public DocumentView2(Context context, IAttributeSet attrs, int defStyleAttr)
Parameters
Type Name Description
Android.Content.Context context
Android.Util.IAttributeSet attrs
System.Int32 defStyleAttr

DocumentView2(IntPtr, JniHandleOwnership)

Declaration
protected DocumentView2(IntPtr javaReference, JniHandleOwnership transfer)
Parameters
Type Name Description
System.IntPtr javaReference
Android.Runtime.JniHandleOwnership transfer

Properties

JniPeerMembers

Declaration
public override JniPeerMembers JniPeerMembers { get; }
Property Value
Type Description
Java.Interop.JniPeerMembers

MCustomHeaders

Declaration
public JSONObject MCustomHeaders { get; set; }
Property Value
Type Description
Org.Json.JSONObject

MDocumentUri

Declaration
public Uri MDocumentUri { get; set; }
Property Value
Type Description
Android.Net.Uri

MFragmentManager

Declaration
public FragmentManager MFragmentManager { get; set; }
Property Value
Type Description
AndroidX.Fragment.App.FragmentManager

MNavIconRes

Declaration
public int MNavIconRes { get; set; }
Property Value
Type Description
System.Int32

MPassword

Declaration
public string MPassword { get; set; }
Property Value
Type Description
System.String

MPdfViewCtrlTabHostFragment

Declaration
public PdfViewCtrlTabHostFragment2 MPdfViewCtrlTabHostFragment { get; set; }
Property Value
Type Description
PdfViewCtrlTabHostFragment2

MShowNavIcon

Declaration
public bool MShowNavIcon { get; set; }
Property Value
Type Description
System.Boolean

MTabHostListener

Declaration
public PdfViewCtrlTabHostBaseFragment.ITabHostListener MTabHostListener { get; set; }
Property Value
Type Description
PdfViewCtrlTabHostBaseFragment.ITabHostListener

MViewerBuilder

Declaration
public ViewerBuilder2 MViewerBuilder { get; set; }
Property Value
Type Description
ViewerBuilder2

MViewerConfig

Declaration
public ViewerConfig MViewerConfig { get; set; }
Property Value
Type Description
ViewerConfig

ThresholdClass

Declaration
protected override IntPtr ThresholdClass { get; }
Property Value
Type Description
System.IntPtr

ThresholdType

Declaration
protected override Type ThresholdType { get; }
Property Value
Type Description
System.Type

Viewer

Declaration
protected virtual PdfViewCtrlTabHostFragment2 Viewer { get; }
Property Value
Type Description
PdfViewCtrlTabHostFragment2

Methods

BuildViewer()

Declaration
protected virtual void BuildViewer()

CanRecreateActivity()

Declaration
public virtual bool CanRecreateActivity()
Returns
Type Description
System.Boolean

CanShowFileCloseSnackbar()

Declaration
public virtual bool CanShowFileCloseSnackbar()
Returns
Type Description
System.Boolean

CanShowFileInFolder()

Declaration
public virtual bool CanShowFileInFolder()
Returns
Type Description
System.Boolean

Cleanup()

Declaration
protected virtual void Cleanup()

OnExitSearchMode()

Declaration
public virtual void OnExitSearchMode()

OnJumpToSdCardFolder()

Declaration
public virtual void OnJumpToSdCardFolder()

OnLastTabClosed()

Declaration
public virtual void OnLastTabClosed()

OnNavButtonPressed()

Declaration
public virtual void OnNavButtonPressed()

OnOpenDocError()

Declaration
public virtual bool OnOpenDocError()
Returns
Type Description
System.Boolean

OnShowFileInFolder(String, String, Int32)

Declaration
public virtual void OnShowFileInFolder(string fileName, string filepath, int itemSource)
Parameters
Type Name Description
System.String fileName
System.String filepath
System.Int32 itemSource

OnStartSearchMode()

Declaration
public virtual void OnStartSearchMode()

OnTabChanged(String)

Declaration
public virtual void OnTabChanged(string tag)
Parameters
Type Name Description
System.String tag

OnTabDocumentLoaded(String)

Declaration
public virtual void OnTabDocumentLoaded(string tag)
Parameters
Type Name Description
System.String tag

OnTabHostHidden()

Declaration
public virtual void OnTabHostHidden()

OnTabHostShown()

Declaration
public virtual void OnTabHostShown()

OnTabPaused(FileInfo, Boolean)

Declaration
public virtual void OnTabPaused(FileInfo fileInfo, bool b)
Parameters
Type Name Description
FileInfo fileInfo
System.Boolean b

OnToolbarCreateOptionsMenu(IMenu, MenuInflater)

Declaration
public virtual bool OnToolbarCreateOptionsMenu(IMenu menu, MenuInflater inflater)
Parameters
Type Name Description
Android.Views.IMenu menu
Android.Views.MenuInflater inflater
Returns
Type Description
System.Boolean

OnToolbarOptionsItemSelected(IMenuItem)

Declaration
public virtual bool OnToolbarOptionsItemSelected(IMenuItem item)
Parameters
Type Name Description
Android.Views.IMenuItem item
Returns
Type Description
System.Boolean

OnToolbarPrepareOptionsMenu(IMenu)

Declaration
public virtual bool OnToolbarPrepareOptionsMenu(IMenu menu)
Parameters
Type Name Description
Android.Views.IMenu menu
Returns
Type Description
System.Boolean

PrepView()

Declaration
protected virtual void PrepView()

SetCustomHeaders(JSONObject)

Declaration
public virtual void SetCustomHeaders(JSONObject customHeaders)
Parameters
Type Name Description
Org.Json.JSONObject customHeaders

SetDocumentUri(Uri)

Declaration
public virtual void SetDocumentUri(Uri documentUri)
Parameters
Type Name Description
Android.Net.Uri documentUri

SetNavIconResName(String)

Declaration
public virtual void SetNavIconResName(string resName)
Parameters
Type Name Description
System.String resName

SetPassword(String)

Declaration
public virtual void SetPassword(string password)
Parameters
Type Name Description
System.String password

SetShowNavIcon(Boolean)

Declaration
public virtual void SetShowNavIcon(bool showNavIcon)
Parameters
Type Name Description
System.Boolean showNavIcon

SetSupportFragmentManager(FragmentManager)

Declaration
public virtual void SetSupportFragmentManager(FragmentManager fragmentManager)
Parameters
Type Name Description
AndroidX.Fragment.App.FragmentManager fragmentManager

SetTabHostListener(PdfViewCtrlTabHostBaseFragment.ITabHostListener)

Declaration
public virtual void SetTabHostListener(PdfViewCtrlTabHostBaseFragment.ITabHostListener listener)
Parameters
Type Name Description
PdfViewCtrlTabHostBaseFragment.ITabHostListener listener

SetViewerConfig(ViewerConfig)

Declaration
public virtual void SetViewerConfig(ViewerConfig config)
Parameters
Type Name Description
ViewerConfig config

Events

CanRecreateActivityEvent

Declaration
public event EventHandler<PdfViewCtrlTabHostBaseFragment.CanRecreateActivityEventArgs> CanRecreateActivityEvent
Event Type
Type Description
System.EventHandler<PdfViewCtrlTabHostBaseFragment.CanRecreateActivityEventArgs>

CanShowFileCloseSnackbarEvent

Declaration
public event EventHandler<PdfViewCtrlTabHostBaseFragment.CanShowFileCloseSnackbarEventArgs> CanShowFileCloseSnackbarEvent
Event Type
Type Description
System.EventHandler<PdfViewCtrlTabHostBaseFragment.CanShowFileCloseSnackbarEventArgs>

CanShowFileInFolderEvent

Declaration
public event EventHandler<PdfViewCtrlTabHostBaseFragment.CanShowFileInFolderEventArgs> CanShowFileInFolderEvent
Event Type
Type Description
System.EventHandler<PdfViewCtrlTabHostBaseFragment.CanShowFileInFolderEventArgs>

ExitSearchMode

Declaration
public event EventHandler ExitSearchMode
Event Type
Type Description
System.EventHandler

JumpToSdCardFolder

Declaration
public event EventHandler JumpToSdCardFolder
Event Type
Type Description
System.EventHandler

LastTabClosed

Declaration
public event EventHandler LastTabClosed
Event Type
Type Description
System.EventHandler

NavButtonPressed

Declaration
public event EventHandler NavButtonPressed
Event Type
Type Description
System.EventHandler

OpenDocError

Declaration
public event EventHandler<PdfViewCtrlTabHostBaseFragment.OpenDocErrorEventArgs> OpenDocError
Event Type
Type Description
System.EventHandler<PdfViewCtrlTabHostBaseFragment.OpenDocErrorEventArgs>

ShowFileInFolder

Declaration
public event EventHandler<PdfViewCtrlTabHostBaseFragment.ShowFileInFolderEventArgs> ShowFileInFolder
Event Type
Type Description
System.EventHandler<PdfViewCtrlTabHostBaseFragment.ShowFileInFolderEventArgs>

StartSearchMode

Declaration
public event EventHandler StartSearchMode
Event Type
Type Description
System.EventHandler

TabChanged

Declaration
public event EventHandler<PdfViewCtrlTabHostBaseFragment.TabChangedEventArgs> TabChanged
Event Type
Type Description
System.EventHandler<PdfViewCtrlTabHostBaseFragment.TabChangedEventArgs>

TabDocumentLoaded

Declaration
public event EventHandler<PdfViewCtrlTabHostBaseFragment.TabDocumentLoadedEventArgs> TabDocumentLoaded
Event Type
Type Description
System.EventHandler<PdfViewCtrlTabHostBaseFragment.TabDocumentLoadedEventArgs>

TabHostHidden

Declaration
public event EventHandler TabHostHidden
Event Type
Type Description
System.EventHandler

TabHostShown

Declaration
public event EventHandler TabHostShown
Event Type
Type Description
System.EventHandler

TabPaused

Declaration
public event EventHandler<PdfViewCtrlTabHostBaseFragment.TabPausedEventArgs> TabPaused
Event Type
Type Description
System.EventHandler<PdfViewCtrlTabHostBaseFragment.TabPausedEventArgs>

ToolbarCreateOptionsMenu

Declaration
public event EventHandler<PdfViewCtrlTabHostBaseFragment.ToolbarCreateOptionsMenuEventArgs> ToolbarCreateOptionsMenu
Event Type
Type Description
System.EventHandler<PdfViewCtrlTabHostBaseFragment.ToolbarCreateOptionsMenuEventArgs>

ToolbarOptionsItemSelected

Declaration
public event EventHandler<PdfViewCtrlTabHostBaseFragment.ToolbarOptionsItemSelectedEventArgs> ToolbarOptionsItemSelected
Event Type
Type Description
System.EventHandler<PdfViewCtrlTabHostBaseFragment.ToolbarOptionsItemSelectedEventArgs>

ToolbarPrepareOptionsMenu

Declaration
public event EventHandler<PdfViewCtrlTabHostBaseFragment.ToolbarPrepareOptionsMenuEventArgs> ToolbarPrepareOptionsMenu
Event Type
Type Description
System.EventHandler<PdfViewCtrlTabHostBaseFragment.ToolbarPrepareOptionsMenuEventArgs>

Implements

PdfViewCtrlTabHostFragment2.ITabHostListener
PdfViewCtrlTabHostBaseFragment.ITabHostListener
Android.Runtime.IJavaObject
System.IDisposable
Java.Interop.IJavaPeerable
In This Article
Back to top Generated by DocFX