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.
|
| 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...
|
|
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
◆ getPermission()
AnnotationAuthorityManager::getPermission |
( |
|
annot | ) |
|
|
inline |
Obtains the newest permission of the specified annot.
- Parameters
-
- 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
-
annot | Annot |
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
-
- 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