openAppResult

suspend fun openAppResult(context: Context, packageName: String): Result<Boolean>(source)

Opens a specific app if installed and exposes the operation result.

Return

A Result containing true when the app was launched or a failure when the launch intent could not be obtained or starting the activity failed.