public abstract class

ContextDataProvider

extends Object
implements DataProvider
java.lang.Object
   ↳ com.pspdfkit.document.providers.ContextDataProvider
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Abstract data provider that allows subclasses to retrieve the application context by calling getContext(). Calling the method before initializing PSPDFKit will throw an exception.

Summary

[Expand]
Inherited Constants
From interface com.pspdfkit.document.providers.DataProvider
[Expand]
Inherited Fields
From interface com.pspdfkit.document.providers.DataProvider
Public Constructors
ContextDataProvider()
Protected Methods
Context getContext()
Returns the application context (as retrieved by getApplicationContext()).
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.pspdfkit.document.providers.DataProvider

Public Constructors

public ContextDataProvider ()

Protected Methods

protected Context getContext ()

Returns the application context (as retrieved by getApplicationContext()). This method will never return null. If calling the method before PSPDFKit has been initialized, it will throw an exception.

Returns
  • The current application context.