pub unsafe trait UIPointerInteractionDelegate: NSObjectProtocol + MainThreadOnly {
// Provided methods
fn pointerInteraction_regionForRequest_defaultRegion(
&self,
interaction: &UIPointerInteraction,
request: &UIPointerRegionRequest,
default_region: &UIPointerRegion,
) -> Option<Retained<UIPointerRegion>>
where Self: Sized + Message { ... }
fn pointerInteraction_styleForRegion(
&self,
interaction: &UIPointerInteraction,
region: &UIPointerRegion,
) -> Option<Retained<UIPointerStyle>>
where Self: Sized + Message { ... }
fn pointerInteraction_willEnterRegion_animator(
&self,
interaction: &UIPointerInteraction,
region: &UIPointerRegion,
animator: &ProtocolObject<dyn UIPointerInteractionAnimating>,
)
where Self: Sized + Message { ... }
fn pointerInteraction_willExitRegion_animator(
&self,
interaction: &UIPointerInteraction,
region: &UIPointerRegion,
animator: &ProtocolObject<dyn UIPointerInteractionAnimating>,
)
where Self: Sized + Message { ... }
}UIPointerInteraction only.Expand description
Provided Methods§
Sourcefn pointerInteraction_regionForRequest_defaultRegion(
&self,
interaction: &UIPointerInteraction,
request: &UIPointerRegionRequest,
default_region: &UIPointerRegion,
) -> Option<Retained<UIPointerRegion>>
Available on crate feature UIPointerRegion only.
fn pointerInteraction_regionForRequest_defaultRegion( &self, interaction: &UIPointerInteraction, request: &UIPointerRegionRequest, default_region: &UIPointerRegion, ) -> Option<Retained<UIPointerRegion>>
UIPointerRegion only.Called as the pointer moves within the interaction’s view.
Parameter interaction: This UIPointerInteraction.
Parameter request: Request object describing the pointer’s location in the interaction’s view.
Parameter defaultRegion: Region representing the entire surface of the interaction’s view.
Returns: A UIPointerRegion in which to apply a pointer style. Return nil to indicate that this interaction should not customize the pointer for the current location.
Sourcefn pointerInteraction_styleForRegion(
&self,
interaction: &UIPointerInteraction,
region: &UIPointerRegion,
) -> Option<Retained<UIPointerStyle>>
Available on crate features UIHoverStyle and UIPointerRegion and UIPointerStyle only.
fn pointerInteraction_styleForRegion( &self, interaction: &UIPointerInteraction, region: &UIPointerRegion, ) -> Option<Retained<UIPointerStyle>>
UIHoverStyle and UIPointerRegion and UIPointerStyle only.Called after the interaction receives a new UIPointerRegion from pointerInteraction:regionForRequest:defaultRegion:.
Parameter interaction: This UIPointerInteraction.
Parameter region: The UIPointerRegion for which a style is being requested.
Returns: A UIPointerStyle describing the desired hover effect or pointer appearance for the given UIPointerRegion.
Sourcefn pointerInteraction_willEnterRegion_animator(
&self,
interaction: &UIPointerInteraction,
region: &UIPointerRegion,
animator: &ProtocolObject<dyn UIPointerInteractionAnimating>,
)
Available on crate feature UIPointerRegion only.
fn pointerInteraction_willEnterRegion_animator( &self, interaction: &UIPointerInteraction, region: &UIPointerRegion, animator: &ProtocolObject<dyn UIPointerInteractionAnimating>, )
UIPointerRegion only.Called when the pointer enters a given region.
Parameter interaction: This UIPointerInteraction.
Parameter region: The UIPointerRegion the pointer is about to enter.
Parameter animator: Region entrance animator. Add animations to run them alongside the pointer’s entrance animation.
Sourcefn pointerInteraction_willExitRegion_animator(
&self,
interaction: &UIPointerInteraction,
region: &UIPointerRegion,
animator: &ProtocolObject<dyn UIPointerInteractionAnimating>,
)
Available on crate feature UIPointerRegion only.
fn pointerInteraction_willExitRegion_animator( &self, interaction: &UIPointerInteraction, region: &UIPointerRegion, animator: &ProtocolObject<dyn UIPointerInteractionAnimating>, )
UIPointerRegion only.Called when the pointer exists a given region.
Parameter interaction: This UIPointerInteraction.
Parameter region: The UIPointerRegion the pointer is about to exit.
Parameter animator: Region exit animator. Add animations to run them alongside the pointer’s exit animation.