PdfKmpViewerFileProvider

Dedicated FileProvider subclass declared in the viewer's manifest.

The only reason this class exists is to give the provider a unique android:name so the Android manifest merger does not collapse it into the consumer app's own androidx.core.content.FileProvider declaration. Manifest merger uses android:name as the merge key for <provider> elements, so when both the library and the host app declare a provider named androidx.core.content.FileProvider, the higher-priority host wins and the library's authority + path meta-data are dropped — which then makes FileProvider.getUriForFile(...) throw IllegalArgumentException: Couldn't find meta-data for provider with authority … from the share sheet at runtime.

Subclassing sidesteps the collision entirely: the merge key is now this class's fully qualified name, which no consumer app will ever declare.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun attachInfo(p0: @NonNull Context, p1: @NonNull ProviderInfo)
Link copied to clipboard
open fun delete(p0: @NonNull Uri, p1: @Nullable String, p2: @Nullable Array<String>): Int
Link copied to clipboard
open fun getType(p0: @NonNull Uri): @Nullable String
Link copied to clipboard
open fun getTypeAnonymous(p0: @NonNull Uri): @Nullable String
Link copied to clipboard
open fun insert(p0: @NonNull Uri, p1: @NonNull ContentValues): Uri
Link copied to clipboard
open fun onCreate(): Boolean
Link copied to clipboard
open fun openFile(p0: @NonNull Uri, p1: @NonNull String): ParcelFileDescriptor
Link copied to clipboard
open fun query(p0: @NonNull Uri, p1: @Nullable Array<String>, p2: @Nullable String, p3: @Nullable Array<String>, p4: @Nullable String): @NonNull Cursor
Link copied to clipboard
open fun update(p0: @NonNull Uri, p1: @NonNull ContentValues, p2: @Nullable String, p3: @Nullable Array<String>): Int