foveatedStreamingPauseSheet(session:)
Tells the system to present a sheet with controls for resuming or ending the foveated streaming session when it pauses.
Declaration
@MainActor @preconcurrency func foveatedStreamingPauseSheet(session: Binding<FoveatedStreamingSession?>) -> some View
Parameters
- session:
A binding to the foveated streaming session to display the pause sheet for. If
nil, the system never displays the pause sheet.
Discussion
Add this view modifier to inform the system that it should display UI for resuming the foveated streaming session when the person pauses the session. Otherwise, build your own UI that allows the person to resume the session by calling the FoveatedStreamingSession/resume() function.