public class

DefaultApplicationPolicy

extends ApplicationPolicy
java.lang.Object
   ↳ com.pspdfkit.configuration.policy.ApplicationPolicy
     ↳ com.pspdfkit.configuration.policy.DefaultApplicationPolicy

Class Overview

Default application policy which doesn't add any restrictions - all features are enabled.

Summary

Public Constructors
DefaultApplicationPolicy()
Public Methods
boolean hasPermissionForEvent(ApplicationPolicy.PolicyEvent event)
Called to check if certain policy action should be allowed or not.
[Expand]
Inherited Methods
From class com.pspdfkit.configuration.policy.ApplicationPolicy
From class java.lang.Object

Public Constructors

public DefaultApplicationPolicy ()

Public Methods

public 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