in the ARFoundation Unity samples I found the following code snippet:
public void BackButtonPressed() { if (Application.CanStreamedLevelBeLoad