Class AnnotationToolbarComponent
Inheritance
System.Object
AnnotationToolbarComponent
Implements
Android.Runtime.IJavaObject
System.IDisposable
Java.Interop.IJavaPeerable
Assembly: PDFViewCtrlTools.dll
public class AnnotationToolbarComponent : Object, AdvancedShapeCreate.IOnEditToolbarListener
Constructors
Declaration
public AnnotationToolbarComponent(ILifecycleOwner lifecycleOwner, AnnotationToolbarViewModel annotationToolbarViewModel, PresetBarViewModel presetBarViewModel, ToolManagerViewModel toolManagerViewModel, ViewGroup container)
Parameters
Declaration
public AnnotationToolbarComponent(ILifecycleOwner lifecycleOwner, AnnotationToolbarViewModel annotationToolbarViewModel, PresetBarViewModel presetBarViewModel, ToolManagerViewModel toolManagerViewModel, AnnotationToolbarView view)
Parameters
Declaration
protected AnnotationToolbarComponent(IntPtr javaReference, JniHandleOwnership transfer)
Parameters
Type |
Name |
Description |
System.IntPtr |
javaReference |
|
Android.Runtime.JniHandleOwnership |
transfer |
|
Fields
Declaration
public const string ToolbarItemBundle = "toolbarItem"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string ToolmodeDisabled = "toolmode_disabled"
Field Value
Type |
Description |
System.String |
|
Properties
Declaration
public virtual bool IsEditing { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public override JniPeerMembers JniPeerMembers { get; }
Property Value
Type |
Description |
Java.Interop.JniPeerMembers |
|
Declaration
protected AnnotationToolbarView MAnnotationToolbarView { get; set; }
Property Value
Declaration
protected AnnotationToolbarViewModel MAnnotationToolbarViewModel { get; set; }
Property Value
Declaration
protected bool MCompactMode { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
MContext
Declaration
protected Context MContext { get; set; }
Property Value
Type |
Description |
Android.Content.Context |
|
Declaration
protected SingleButtonToolbar MEditToolbar { get; set; }
Property Value
Declaration
protected EditToolbarImpl MEditToolbarImpl { get; set; }
Property Value
Declaration
protected bool MForceSameNextToolMode { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
protected ILifecycleOwner MLifecycleOwner { get; set; }
Property Value
Type |
Description |
AndroidX.Lifecycle.ILifecycleOwner |
|
Declaration
protected int MNavigationIcon { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Declaration
protected bool MNavigationIconVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
protected PresetBarViewModel MPresetBarViewModel { get; set; }
Property Value
Declaration
protected ToolManager.ToolMode MSelectedToolMode { get; set; }
Property Value
Declaration
protected IDictionary MToolbarItemIdMap { get; set; }
Property Value
Type |
Description |
System.Collections.IDictionary |
|
Declaration
protected ToolManagerViewModel MToolManagerViewModel { get; set; }
Property Value
Declaration
protected override IntPtr ThresholdClass { get; }
Property Value
Type |
Description |
System.IntPtr |
|
Declaration
protected override Type ThresholdType { get; }
Property Value
Type |
Description |
System.Type |
|
Declaration
public virtual ActionToolbar ToolbarView { get; }
Property Value
Methods
Declaration
public virtual void AddButtonClickListener(AnnotationToolbarComponent.IAnnotationButtonClickListener onMenuItemClickListener)
Parameters
Declaration
public virtual void AddButtonLongClickListener(View.IOnLongClickListener listener)
Parameters
Type |
Name |
Description |
Android.Views.View.IOnLongClickListener |
listener |
|
Declaration
public virtual void AddOnPreBuildToolbarListener(AnnotationToolbarComponent.IOnPreBuildToolbarListener listener)
Parameters
Declaration
public virtual void AddOnToolbarChangedListener(AnnotationToolbarComponent.IOnToolbarChangedListener listener)
Parameters
Declaration
public virtual void AddToolbarActionsLeftOptionalContainer(View view)
Parameters
Type |
Name |
Description |
Android.Views.View |
view |
|
Declaration
public virtual void AddToolbarActionsRightOptionalContainer(View view)
Parameters
Type |
Name |
Description |
Android.Views.View |
view |
|
Declaration
public virtual void AddToolbarLeftOptionalContainer(View view)
Parameters
Type |
Name |
Description |
Android.Views.View |
view |
|
Declaration
public virtual void AddToolbarOverlay(View view)
Parameters
Type |
Name |
Description |
Android.Views.View |
view |
|
Declaration
public virtual View BuildRedactionApplyButton()
Returns
Type |
Description |
Android.Views.View |
|
Declaration
public virtual void ClearOptionalToolbarContainer()
Declaration
public virtual void ClearState()
Declaration
public virtual void ClearToolbarOverlayView()
Declaration
public virtual void CloseEditToolbar()
Declaration
protected virtual SingleButtonToolbar CreateEditToolbar()
Returns
Declaration
public virtual void DisableAllItems()
Declaration
public virtual void Hide(bool animated)
Parameters
Type |
Name |
Description |
System.Boolean |
animated |
|
Declaration
public virtual void InflateWithBuilder(AnnotationToolbarBuilder builder)
Parameters
Declaration
public virtual void RememberLastUsedTool(bool lastUsedTool)
Parameters
Type |
Name |
Description |
System.Boolean |
lastUsedTool |
|
Declaration
public virtual void RemoveButtonClickListener(AnnotationToolbarComponent.IAnnotationButtonClickListener onMenuItemClickListener)
Parameters
Declaration
public virtual void RemoveButtonLongClickListener(View.IOnLongClickListener listener)
Parameters
Type |
Name |
Description |
Android.Views.View.IOnLongClickListener |
listener |
|
Declaration
public virtual void RemoveOnPreBuildToolbarListener(AnnotationToolbarComponent.IOnPreBuildToolbarListener listener)
Parameters
Declaration
public virtual void RemoveOnToolbarChangedListener(AnnotationToolbarComponent.IOnToolbarChangedListener listener)
Parameters
Declaration
public virtual void SelectToolbarButton(int buttonId)
Parameters
Type |
Name |
Description |
System.Int32 |
buttonId |
|
Declaration
public virtual void SetCompactMode(bool compactMode)
Parameters
Type |
Name |
Description |
System.Boolean |
compactMode |
|
SetEmptyToolText(Int32)
Declaration
public virtual void SetEmptyToolText(int emptyText)
Parameters
Type |
Name |
Description |
System.Int32 |
emptyText |
|
SetEmptyToolTextOnClickListener(View.IOnClickListener)
Declaration
public virtual void SetEmptyToolTextOnClickListener(View.IOnClickListener listener)
Parameters
Type |
Name |
Description |
Android.Views.View.IOnClickListener |
listener |
|
SetEmptyToolTextVisible(Boolean)
Declaration
public virtual void SetEmptyToolTextVisible(bool visible)
Parameters
Type |
Name |
Description |
System.Boolean |
visible |
|
Declaration
public virtual void SetIconColor(int buttonId, int iconColor)
Parameters
Type |
Name |
Description |
System.Int32 |
buttonId |
|
System.Int32 |
iconColor |
|
Declaration
public virtual void SetItemAppearanceEnabled(int buttonId, bool isAppearanceEnabled)
Parameters
Type |
Name |
Description |
System.Int32 |
buttonId |
|
System.Boolean |
isAppearanceEnabled |
|
Declaration
public virtual void SetItemEnabled(int buttonId, bool isEnabled)
Parameters
Type |
Name |
Description |
System.Int32 |
buttonId |
|
System.Boolean |
isEnabled |
|
Declaration
public virtual void SetItemVisibility(int buttonId, bool isVisible)
Parameters
Type |
Name |
Description |
System.Int32 |
buttonId |
|
System.Boolean |
isVisible |
|
Declaration
public virtual void SetNavigationIcon(int icon)
Parameters
Type |
Name |
Description |
System.Int32 |
icon |
|
Declaration
public virtual void SetNavigationIconProperty(int paddingLeft, int minWidth)
Parameters
Type |
Name |
Description |
System.Int32 |
paddingLeft |
|
System.Int32 |
minWidth |
|
Declaration
public virtual void SetNavigationIconVisible(bool visible)
Parameters
Type |
Name |
Description |
System.Boolean |
visible |
|
Declaration
public virtual void SetSelectedIconColor(int buttonId, int iconColor)
Parameters
Type |
Name |
Description |
System.Int32 |
buttonId |
|
System.Int32 |
iconColor |
|
Declaration
public virtual void SetToolbarButtonVisibility(ToolbarButtonType buttonType, bool visibility)
Parameters
Declaration
public virtual void SetToolbarHeight(int height)
Parameters
Type |
Name |
Description |
System.Int32 |
height |
|
Declaration
public virtual void SetToolbarItemGravity(int layoutGravity)
Parameters
Type |
Name |
Description |
System.Int32 |
layoutGravity |
|
Declaration
public virtual void SetToolbarSwitcherVisible(bool visible)
Parameters
Type |
Name |
Description |
System.Boolean |
visible |
|
Declaration
public virtual void SetToolModeFilter(ICollection<ToolManager.ToolMode> disabledToolModes)
Parameters
Type |
Name |
Description |
System.Collections.Generic.ICollection<ToolManager.ToolMode> |
disabledToolModes |
|
Declaration
public virtual void SetToolRegionVisible(bool visible)
Parameters
Type |
Name |
Description |
System.Boolean |
visible |
|
Declaration
public virtual void SetVerticalLayout(ViewGroup parent, PdfViewCtrlTabHostFragment2.AnnotationToolbarPosition position)
Parameters
Declaration
public virtual void Show(bool animated)
Parameters
Type |
Name |
Description |
System.Boolean |
animated |
|
Declaration
public virtual void ShowEditToolbar(ToolManager.ToolMode toolMode, Annot annot, int pageNum)
Parameters
Type |
Name |
Description |
ToolManager.ToolMode |
toolMode |
|
pdftronprivate.PDF.Annot |
annot |
|
System.Int32 |
pageNum |
|
Declaration
protected virtual void ShowEditToolbar(ToolManager.ToolMode toolMode, Annot annot, int pageNum, Bundle bundle, bool keepAnnotatingAfterDismiss)
Parameters
Type |
Name |
Description |
ToolManager.ToolMode |
toolMode |
|
pdftronprivate.PDF.Annot |
annot |
|
System.Int32 |
pageNum |
|
Android.OS.Bundle |
bundle |
|
System.Boolean |
keepAnnotatingAfterDismiss |
|
Declaration
public virtual void ShowEditToolbar(ToolManager.ToolMode toolMode, Annot annot, int pageNum, bool keepAnnotatingAfterDismiss)
Parameters
Type |
Name |
Description |
ToolManager.ToolMode |
toolMode |
|
pdftronprivate.PDF.Annot |
annot |
|
System.Int32 |
pageNum |
|
System.Boolean |
keepAnnotatingAfterDismiss |
|
Declaration
public virtual void ShowUndoRedoPopup(View anchor)
Parameters
Type |
Name |
Description |
Android.Views.View |
anchor |
|
Declaration
public virtual void SlideIn()
Declaration
public virtual void SlideOut()
Declaration
public virtual void UpdateToolbarState()
Events
Declaration
public event EventHandler<AnnotationToolbarComponent.InterceptItemClickEventArgs> InterceptItemClick
Event Type
PostItemClick
Declaration
public event EventHandler<AnnotationToolbarComponent.PostItemClickEventArgs> PostItemClick
Event Type
Declaration
public event EventHandler<AnnotationToolbarComponent.PreBuildToolbarEventArgs> PreBuildToolbar
Event Type
Declaration
public event EventHandler<AnnotationToolbarComponent.PreItemClickEventArgs> PreItemClick
Event Type
Declaration
public event EventHandler<AnnotationToolbarComponent.ToolbarChangedEventArgs> ToolbarChanged
Event Type
Implements
Android.Runtime.IJavaObject
System.IDisposable
Java.Interop.IJavaPeerable