PSPDFKit
Main PSPDFKit entry point. Use .initialize to initialize the library if you are not using the com.pspdfkit.ui.PdfActivity or the com.pspdfkit.ui.PdfFragment (which handle initialization on their own).
Properties
Functions
Add a AnalyticsClient to receive analytics events from PSPDFKit. This method will return true
if the client was successfully added, or false
if it was not added. Usually this happens if the client has already been added previously.
Clears pageBitmap memory cache to free memory.
Checks if PSPDFKit is initialized or throws PSPDFKitNotInitializedException if not.
Returns application policy. If not set, defaults to com.pspdfkit.configuration.policy.DefaultApplicationPolicy.
Gets all the LicenseFeature that are enabled with the current license.
Returns The FontManager giving you access to the system fonts.
Initializes PSPDFKit with a license key. This must be called before any other call to methods in this class.
Helper for the main initialise method. Useful if you only want to initialise with a license key and want to leave other options as default.
Initializes PSPDFKit with a license key and a specific application policy. This must be called before any other call to methods in this class.
Returns true
if PSPDFKit is initialized and ready to use.
Checks whether or not PSPDFKit can extract a local filesystem path from the uri
. If this method returns true
PSPDFKit can directly access the document on the filesystem, and can thus achieve faster loading speeds. If the method returns false
, use .isOpenableUri to check whether PSPDFKit can still use the uri
for document access.
PSPDFKit can only open URIs from content providers that also provide size information. This determines if the document is openable directly from that URI. Note that this will not check if file actually exists.
Remove a previously added AnalyticsClient from PSPDFKit. This method will return true
if the client was successfully removed, or false
if it was not removed. This usually happens if the client was not registered previously.
Sets application policy for the loaded library. Make sure the library is initialized before calling this method.
Sets a new LocalizationListener to help with localizing SDK framework strings. WARNING: The localization listener is retained globally, so make sure it does not refer to any Activity context or it WILL leak memory.
Sets a directory into which native code minidumps will be stored for debugging of native crashes. T he minidumps are stored in Google Breakpad format.