Nutrient
Main Nutrient 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 Nutrient. 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 Nutrient is initialized or throws NutrientNotInitializedException 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 Nutrient 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.
Returns true
if Nutrient is initialized and ready to use.
Checks whether or not Nutrient can extract a local filesystem path from the uri
. If this method returns true
Nutrient 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 Nutrient can still use the uri
for document access.
Nutrient 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.
Releases Nutrient library and all associated caches from memory.
Remove a previously added AnalyticsClient from Nutrient. 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.