public static final class

SignatureAppearance.SignatureGraphic

extends Object
implements Parcelable
java.lang.Object
   ↳ com.pspdfkit.signatures.SignatureAppearance.SignatureGraphic

Class Overview

Contains the graphic that will be used as the signature.

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<SignatureAppearance.SignatureGraphic> CREATOR
Public Methods
int describeContents()
boolean equals(Object o)
static SignatureAppearance.SignatureGraphic fromBitmap(Uri uri)
Creates a new SignatureAppearance.SignatureGraphic from the image located at the given URI.
static SignatureAppearance.SignatureGraphic fromBitmap(DataProvider dataProvider)
Creates a new SignatureAppearance.SignatureGraphic from the image contained in the given data provider.
static SignatureAppearance.SignatureGraphic fromPdf(DocumentSource source)
Creates a new SignatureAppearance.SignatureGraphic from the PDF found at the given document source.
DataProvider getDataProvider()
Uri getUri()
int hashCode()
boolean isBitmap()
Whether or not this SignatureAppearance.SignatureGraphic is a bitmap.
String toString()
void writeToParcel(Parcel dest, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Fields

public static final Creator<SignatureAppearance.SignatureGraphic> CREATOR

Public Methods

public int describeContents ()

public boolean equals (Object o)

public static SignatureAppearance.SignatureGraphic fromBitmap (Uri uri)

Creates a new SignatureAppearance.SignatureGraphic from the image located at the given URI. This method supports file:/// URIs for accessing image files on the local file system, content:// URIs for loading an image from a content provider, and file:///android_asset/ URIs for accessing image files from the app's assets.

Parameters
uri Location of the image to use.
Returns

public static SignatureAppearance.SignatureGraphic fromBitmap (DataProvider dataProvider)

Creates a new SignatureAppearance.SignatureGraphic from the image contained in the given data provider.

Parameters
dataProvider The DataProvider containing the image. This needs to implement Parcelable.
Returns

public static SignatureAppearance.SignatureGraphic fromPdf (DocumentSource source)

Creates a new SignatureAppearance.SignatureGraphic from the PDF found at the given document source.

Parameters
source The DocumentSource containing the PDF. If this is using a DataProvider this needs to implement Parcelable. Furthermore the PDF should not be password protected.
Returns

public DataProvider getDataProvider ()

The DataProvider of this SignatureAppearance.SignatureGraphic. If this is null getUri() is guaranteed to be non-null.

Returns
  • The DataProvider containing the bitmap or PDF, or null is a URI is used.

public Uri getUri ()

The Uri of this SignatureAppearance.SignatureGraphic. If this is null getDataProvider() is guaranteed to be non-null.

Returns
  • The Uri where the bitmap or PDF is located, or null if a data provider is used.

public int hashCode ()

public boolean isBitmap ()

Whether or not this SignatureAppearance.SignatureGraphic is a bitmap.

Returns

public String toString ()

public void writeToParcel (Parcel dest, int flags)