PointerInteractionDelegate
An interface for handling pointer movements within the interaction’s view.
public protocol PointerInteractionDelegate: AnyObject
Inheritance
AnyObject
Default Implementations
pointerInteraction(_:regionFor:defaultRegion:)
public func pointerInteraction(_ interaction: PointerInteraction,
regionFor request: PointerRegionRequest,
defaultRegion: PointerRegion)
-> PointerRegion?
pointerInteraction(_:styleFor:)
public func pointerInteraction(_ interaction: PointerInteraction,
styleFor region: PointerRegion)
-> PointerStyle?
pointerInteraction(_:willEnter:animator:)
public func pointerInteraction(_ interaction: PointerInteraction,
willEnter region: PointerRegion,
animator: PointerInteractionAnimating)
pointerInteraction(_:willExit:animator:)
public func pointerInteraction(_ interaction: PointerInteraction,
willExit region: PointerRegion,
animator: PointerInteractionAnimating)
Requirements
pointerInteraction(_:regionFor:defaultRegion:)
Asks the delegate for a region as the pointer moves within the interaction’s view.
func pointerInteraction(_ interaction: PointerInteraction,
regionFor request: PointerRegionRequest,
defaultRegion: PointerRegion) -> PointerRegion?
pointerInteraction(_:styleFor:)
Asks the delegate for a pointer style after an interaction receives a new region.
func pointerInteraction(_ interaction: PointerInteraction,
styleFor region: PointerRegion) -> PointerStyle?
pointerInteraction(_:willEnter:animator:)
Informs the delegate when the pointer enters a given region.
func pointerInteraction(_ interaction: PointerInteraction,
willEnter region: PointerRegion,
animator: PointerInteractionAnimating)
pointerInteraction(_:willExit:animator:)
Informs the delegate when the pointer exits a given region.
func pointerInteraction(_ interaction: PointerInteraction,
willExit region: PointerRegion,
animator: PointerInteractionAnimating)