public class

AppUtils

extends Object
java.lang.Object
   ↳ com.pdftron.demo.utils.AppUtils

Class Overview

A collection of utility functions used for easy setup of PDFNet application.

Summary

Public Constructors
AppUtils()
Public Methods
static void initHelper(Context applicationContext)
static void initializePDFNetApplication(Context applicationContext)
Utility function for setting up default PDFNet application.
static void initializePDFNetApplication(Context applicationContext, String licenseKey)
Utility function for setting up default PDFNet application.
static void initializePDFNetApplication(Context applicationContext, PDFNetConfig config)
Utility function for setting up custom PDFNet application.
static void initializePDFNetApplication(Context applicationContext, String licenseKey, PDFNetConfig config)
Utility function for setting up custom PDFNet application.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public AppUtils ()

Public Methods

public static void initHelper (Context applicationContext)

public static void initializePDFNetApplication (Context applicationContext)

Utility function for setting up default PDFNet application. A valid PDFNet license key is expected to in AndroidManifest meta data. If using this function, DocumentPreviewCache and RecentlyUsedCache will also be initialized.

Parameters
applicationContext the context

public static void initializePDFNetApplication (Context applicationContext, String licenseKey)

Utility function for setting up default PDFNet application.

Parameters
applicationContext the context
licenseKey the license key

public static void initializePDFNetApplication (Context applicationContext, PDFNetConfig config)

Utility function for setting up custom PDFNet application. A valid PDFNet license key is expected to in AndroidManifest meta data. If using this function, DocumentPreviewCache and RecentlyUsedCache will also be initialized.

Parameters
applicationContext the context
config the custom PDFNetConfig

public static void initializePDFNetApplication (Context applicationContext, String licenseKey, PDFNetConfig config)

Utility function for setting up custom PDFNet application.

Parameters
applicationContext the context
licenseKey the license key
config the custom PDFNetConfig