public abstract class

ApplicationPolicy

extends Object
java.lang.Object
   ↳ com.pspdfkit.configuration.policy.ApplicationPolicy
Known Direct Subclasses

Class Overview

Application policy.

Summary

Nested Classes
enum ApplicationPolicy.PolicyEvent Currently supported policy events. 
Public Constructors
ApplicationPolicy()
Public Methods
abstract boolean hasPermissionForEvent(ApplicationPolicy.PolicyEvent event)
Called to check if certain policy action should be allowed or not.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ApplicationPolicy ()

Public Methods

public abstract boolean hasPermissionForEvent (ApplicationPolicy.PolicyEvent event)

Called to check if certain policy action should be allowed or not.

Since this may get called on main thread multiple times it should be fast.

Parameters
event Event to be permitted or disabled
Returns
  • true to allow the event, false to prevent it