complete

abstract suspend fun complete(    context: Context,     processName: String? = null,     recipientList: List<RecipientModel>? = null,     onSuccess: () -> Unit? = null,     onError: (MyBusinessError) -> Unit? = null): Any

Saves and completes the current process to the given recipients.

See also

Parameters

context

Context The application context.

processName

String(Optional) the new process name, if the name was changed by user.

recipientList

List<RecipientModel> list of recipients

onSuccess

(Optional) will be called when the operation successfully completed.

onError

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