Started mirroring on
This delegate is called after the
UIWindowhas been created and the
rootViewControlleris configured. Use this for additional customization.
rootViewControlleron the mirroring window is supported, as long as the
PSPDFViewControlleris correctly registered as a child view controller.
mirrorControllerForScreen:to access the window if required.
Stopped mirroring on
This delegate is called after the mirroring window is hidden and is about to be deallocated.
Implement this method to return a custom controller that should be used for mirroring. If you return a custom controller, ensure that it is configured correctly.
This is called just before mirroring starts.
The default implementation uses various sensible options such as hiding the thumbnail bar, document label, page label and using automatic page mode.
PSPDFPageTransitionScrollPerSpreadis the only supported page mode for mirroring currently.
Gallery considerations: We recommend at least following options to ensure the gallery works as expected:
builder.allowPlayingMultipleInstances = YES;
builder.usesExternalPlaybackWhileExternalScreenIsActive = NO;See