fromUri

fun fromUri(uri: Uri, context: Context, cancellationSignal: CancellationSignal? = null): Apk?

Reads file at provided uri, parses it and creates an APK split instance.

Returns null if provided file is not an APK.

Parameters

cancellationSignal

a signal to cancel the operation in progress, or null if none. If the operation is cancelled, then OperationCanceledException will be thrown.