PreviewViewControllerDelegate
public protocol PreviewViewControllerDelegate : AnyObject, UnimplementedLogging
PreviewViewControllerDelegate allows to observe Banner presentation and dismissal events.
-
previewViewController(_:willPresent:)Default implementationTells the delegate that the
Banneris about to be presented on the screen.Default Implementation
UnimplementedLoggingprints a warning to standard output the first time this method is called.Declaration
Swift
func previewViewController(_ previewViewController: PreviewViewController, willPresent banner: Banner)Parameters
previewViewControllerPreviewViewControllerinstance that performs banner presentation.bannerBannerthat will be presented. -
previewViewController(_:didPresent:)Default implementationTells the delegate that the
Bannerwas presented on the screen.Default Implementation
UnimplementedLoggingprints a warning to standard output the first time this method is called.Declaration
Swift
func previewViewController(_ previewViewController: PreviewViewController, didPresent banner: Banner)Parameters
previewViewControllerPreviewViewControllerinstance that performs banner presentation.bannerBannerthat was presented. -
previewViewController(_:willDismiss:)Default implementationTells the delegate that the
Bannerwill disappear from the screen.Default Implementation
UnimplementedLoggingprints a warning to standard output the first time this method is called.Declaration
Swift
func previewViewController(_ previewViewController: PreviewViewController, willDismiss banner: Banner)Parameters
previewViewControllerPreviewViewControllerinstance that performs banner dismissal.bannerBannerthat will be dismissed. -
previewViewController(_:didDismiss:)Default implementationTells the delegate that the
Bannerdisappeared from the screen.Default Implementation
UnimplementedLoggingprints a warning to standard output the first time this method is called.Declaration
Swift
func previewViewController(_ previewViewController: PreviewViewController, didDismiss banner: Banner)Parameters
previewViewControllerPreviewViewControllerinstance that performs banner dismissal.bannerBannerthat was dismissed.
Install in Dash
PreviewViewControllerDelegate Protocol Reference