Known Direct Subclasses
|
Known Indirect Subclasses
AssetDataProvider |
Data provider for opening PDF documents directly from the app's assets. |
ContentResolverDataProvider |
Data provider for opening PDF documents directly from a ContentProvider using Android's
content resolver framework. |
|
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 Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
From interface
com.pspdfkit.document.providers.DataProvider
abstract
long
|
getSize()
Return the actual file size of the PDF document which is provided by this data provider.
|
abstract
String
|
getTitle()
Displayable document title to be used if PDF document does not contain metadata.
|
abstract
String
|
getUid()
Unique document identifier used in all caching processes in PSPDFKit.
|
abstract
byte[]
|
read(long size, long offset)
Called by PSPDFKit to read data from the document.
|
abstract
void
|
release()
Called when the provided document is being closed.
|
|
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.