Package apple.uikit.protocol
Interface UISpringLoadedInteractionBehavior
-
public interface UISpringLoadedInteractionBehaviorThe interaction behavior of a `UISpringLoadedInteraction` object must adopt the `UISpringLoadedInteractionBehavior` protocol. API-Since: 11.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidinteractionDidFinish(@NotNull UISpringLoadedInteraction interaction)Informs the behavior that springloading for a given interaction was cancelled or activated.booleanshouldAllowInteractionWithContext(@NotNull UISpringLoadedInteraction interaction, @NotNull UISpringLoadedInteractionContext context)Returns whether springloading should begin or continue for a given interaction.
-
-
-
Method Detail
-
interactionDidFinish
default void interactionDidFinish(@NotNull @NotNull UISpringLoadedInteraction interaction)Informs the behavior that springloading for a given interaction was cancelled or activated.- Parameters:
interaction- The springloaded interaction object providing this information.
-
shouldAllowInteractionWithContext
boolean shouldAllowInteractionWithContext(@NotNull @NotNull UISpringLoadedInteraction interaction, @NotNull @NotNull UISpringLoadedInteractionContext context)Returns whether springloading should begin or continue for a given interaction.- Parameters:
interaction- The springloaded interaction object requesting this informationcontext- An object that provides information about the current drag.- Returns:
- true if the interaction should begin or continue springloading.
-
-