forward

abstract suspend fun forward(    context: Context,     onSuccess: (Uri?) -> Unit? = null,     onError: (MyBusinessError) -> Unit? = null): Any

Exports process in PDF format so that can be forwarded as a file attachment.

PS : This function works only for completed process. Otherwise an error will be returned.

Parameters

context

Context The application context.

onSuccess

(Optional) will be called when the operation successfully completed, and contains the Uri of the exported file.

onError

(Optional) will be called when the operation fails for any reason.