newInstanceFromSources

Creates and returns a new Fragment to display a PDF document from a custom data source as a compound document.

Return

New instance of fragment that can be attached to view hierarchy.

Parameters

sources

List of DataProviders to load data from. Note: this object WILL NOT BE RETAINED ON RECREATION unless it implements Parcelable interface.

configuration

Configuration for PDF display generated with .


Creates and returns a new Fragment to display a PDF document from a custom data source as a compound document.

Return

New instance of fragment that can be attached to view hierarchy.

Parameters

sources

List of DataProviders to load data from. Note: this object WILL NOT BE RETAINED ON RECREATION unless it implements Parcelable interface.

passwords

Document password, can be null.

configuration

Configuration for PDF display generated with .


open fun newInstanceFromSources(@NonNull sources: List<DataProvider>, @Nullable passwords: List<String>, @Nullable contentSignatures: List<String>, @NonNull configuration: PdfConfiguration): PdfFragment

Creates and returns a new Fragment to display a PDF document from a custom data source as a compound document.

Return

New instance of fragment that can be attached to view hierarchy.

Parameters

sources

List of DataProviders to load data from. Note: this object WILL NOT BE RETAINED ON RECREATION unless it implements Parcelable interface.

passwords

Document password, can be null.

contentSignatures

Content signature, can be null.

configuration

Configuration for PDF display generated with .