public class

AppUtils

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

Class Overview

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

Summary

Public Constructors
AppUtils()
Public Methods
static String getLicenseKey(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.
static void setupPDFViewCtrl(PDFViewCtrl pdfViewCtrl, PDFViewCtrlConfig config)
Utility function for setting up PDFViewCtrl.
static void setupPDFViewCtrl(PDFViewCtrl pdfViewCtrl)
Utility function for setting up PDFViewCtrl with default configuration.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public AppUtils ()

Public Methods

public static String getLicenseKey (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.

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.

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

public static void setupPDFViewCtrl (PDFViewCtrl pdfViewCtrl, PDFViewCtrlConfig config)

Utility function for setting up PDFViewCtrl.

Parameters
pdfViewCtrl the PDFViewCtrl
config the custom PDFViewCtrlConfig

public static void setupPDFViewCtrl (PDFViewCtrl pdfViewCtrl)

Utility function for setting up PDFViewCtrl with default configuration.

Parameters
pdfViewCtrl the PDFViewCtrl