java.lang.Object | |
↳ | com.pspdfkit.annotations.appearance.ContentResolverAppearanceStreamGenerator |
Annotation appearance stream generator that supplies a PDF file from a ContentProvider to be used as annotation appearance stream.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
public static final Creator<ContentResolverAppearanceStreamGenerator> | CREATOR |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ContentResolverAppearanceStreamGenerator(Uri uri)
Creates the appearance stream generator serving document at
uri as an appearance
stream. |
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ContentResolverAppearanceStreamGenerator(Parcel in) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | describeContents() | ||||||||||
boolean | equals(Object o) | ||||||||||
DataProvider |
getDataProviderForAnnotation(Annotation annotation, EnumSet<AppearanceStreamGenerator.AppearanceStreamGenerationOptions> options)
Called when the appearance stream data for the given annotation is needed.
| ||||||||||
int | hashCode() | ||||||||||
boolean |
shouldUseGeneratorForAnnotation(Annotation annotation)
Asks the generator whether it should be used to generate the appearance stream for
annotation . | ||||||||||
void | writeToParcel(Parcel dest, int flags) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Creates the appearance stream generator serving document at uri
as an appearance
stream.
uri | The Uri pointing to a document of a content provider. The uri has
to use the content:// or file:// scheme.
|
---|
Called when the appearance stream data for the given annotation is needed.
The data represented by the DataProvider
must be a validly formed PDF. The
contents of the first page of that PDF file will be embedded in the annotation
as its
appearance stream.
annotation | Annotation for which the AP stream is being generated. |
---|---|
options | Enum set of AP stream generation options. |
DataProvider
representing a validly formed PDF or null
to use
annotation's default AP stream.
Asks the generator whether it should be used to generate the appearance stream for annotation
.
annotation | Annotation for which the AP stream is being generated. |
---|