ViewportStatusObserver
public protocol ViewportStatusObserver : AnyObject
ViewportStatusObserver must be implemented by objects that wish to register
themselves using addStatusObserver(_:) so that they can observe
status changes.
See also
addStatusObserver(_:) for an important note about how
these notifications are delivered asynchronously.
-
Called whenever
statuschanges.Declaration
Swift
func viewportStatusDidChange(from fromStatus: ViewportStatus, to toStatus: ViewportStatus, reason: ViewportStatusChangeReason)Parameters
fromStatusThe value of
statusprior to the change.toStatusThe value of
statusafter the change.reasonA
ViewportStatusChangeReasonthat indicates what initiated the change.
ViewportStatusObserver Protocol Reference