FoxitPDFSDKforWeb  8.3.0
Foxit PDF SDK for Web
AnnotationAuthorityManager Class Reference

Annotation Authority manager class, It used to control the permission of each annotations in the PDF document. It can be obtained via Viewer.PDFViewer::getAnnotAuthorityManager() method. More...

Inherits Disposable.

Public Member Functions

 getPermission (annot)
 Obtains the newest permission of the specified annot. More...
 
 subscribe (annot:any, callback:(newPermission:AnnotationPermission, annot:any)=> void)
 Subscribe to monitor an annotation permission changes. Different from ViewerEvents.annotationPermissionChanged event, this callback will be called after subscribe immediately. More...
 
 update (annot)
 Update specified annotation's permission info. More...
 
 updateAll ()
 Update all loaded annotation's permission info. More...
 

Detailed Description

Annotation Authority manager class, It used to control the permission of each annotations in the PDF document. It can be obtained via Viewer.PDFViewer::getAnnotAuthorityManager() method.

Since
7.6.0

Member Function Documentation

◆ getPermission()

AnnotationAuthorityManager::getPermission (   annot)
inline

Obtains the newest permission of the specified annot.

Parameters
annotAnnot
Returns
Promise<AnnotationPermission>
Since
7.6.0

◆ subscribe()

AnnotationAuthorityManager::subscribe (   annot:any,
  callback:(newPermission:AnnotationPermission, annot:any),
  void 
)
inline

Subscribe to monitor an annotation permission changes. Different from ViewerEvents.annotationPermissionChanged event, this callback will be called after subscribe immediately.

Parameters
annotAnnot
callback(permission,annot) => void
Returns
() => void - A function used to unsubscribe.
Since
7.6.0

◆ update()

AnnotationAuthorityManager::update (   annot)
inline

Update specified annotation's permission info.

Parameters
annotAnnot
Returns
Promise<void>
Since
7.6.0

◆ updateAll()

AnnotationAuthorityManager::updateAll ( )
inline

Update all loaded annotation's permission info.

Returns
Promise<void>
Since
7.6.0

Foxit Software Corporation Logo
@2022 Foxit Software Incorporated. All rights reserved.