Contents

experienceController(_:prepareForTransitionUsing:)

Tells the delegate that the system is preparing for a transition.

Declaration

@MainActor func experienceController(_ controller: AVExperienceController, prepareForTransitionUsing context: AVExperienceController.TransitionContext) async

Parameters

  • controller:

    The AVExperienceController.

  • context:

    Contains information about the transition.

Discussion

Implement this method to prepare the app’s state for the toExperience. This may include showing or hiding view controllers, putting the player view controller in the view hierarchy, or any other asynchronous work required for the transition. This is the last chance to update configuration before the transition begins.

See Also

Responding to experience changes