stopAsync

fun stopAsync(onStopped: () -> Unit)

Stop the process asynchronously.

Parameters

onStopped

Called when the stopping is finished. Note: This callback might be triggered after the fragment is destroyed in rare cases. If your onStopped logic requires the fragment to be in a valid (non-destroyed) state, ensure you check the fragment's state before performing any operations. Failing to do so may result in crashes.