PreviewViewControllerDelegate
public protocol PreviewViewControllerDelegate : AnyObject, UnimplementedLogging
PreviewViewControllerDelegate
allows to observe Banner
presentation and dismissal events.
-
previewViewController(_:willPresent:)
Default implementationTells the delegate that the
Banner
is about to be presented on the screen.Default Implementation
UnimplementedLogging
prints a warning to standard output the first time this method is called.Declaration
Swift
func previewViewController(_ previewViewController: PreviewViewController, willPresent banner: Banner)
Parameters
previewViewController
PreviewViewController
instance that performs banner presentation.banner
Banner
that will be presented. -
previewViewController(_:didPresent:)
Default implementationTells the delegate that the
Banner
was presented on the screen.Default Implementation
UnimplementedLogging
prints a warning to standard output the first time this method is called.Declaration
Swift
func previewViewController(_ previewViewController: PreviewViewController, didPresent banner: Banner)
Parameters
previewViewController
PreviewViewController
instance that performs banner presentation.banner
Banner
that was presented. -
previewViewController(_:willDismiss:)
Default implementationTells the delegate that the
Banner
will disappear from the screen.Default Implementation
UnimplementedLogging
prints a warning to standard output the first time this method is called.Declaration
Swift
func previewViewController(_ previewViewController: PreviewViewController, willDismiss banner: Banner)
Parameters
previewViewController
PreviewViewController
instance that performs banner dismissal.banner
Banner
that will be dismissed. -
previewViewController(_:didDismiss:)
Default implementationTells the delegate that the
Banner
disappeared from the screen.Default Implementation
UnimplementedLogging
prints a warning to standard output the first time this method is called.Declaration
Swift
func previewViewController(_ previewViewController: PreviewViewController, didDismiss banner: Banner)
Parameters
previewViewController
PreviewViewController
instance that performs banner dismissal.banner
Banner
that was dismissed.