newDocumentFromIntent

public static GiniCaptureDocument newDocumentFromIntent(@NonNull() Intent intent, @NonNull() Context context, @NonNull() String deviceOrientation, @NonNull() String deviceType, @NonNull() Document.ImportMethod importMethod)

Return

new Document instance with the contents of the Intent's Uri

Parameters

intent

an Intent containing an image or a pdf Uri

context

Android context

Throws

if the Intent's data is null or the mime type is unknown