UIGestureRecognizer(PSPDFInteractionComponentSupport)
Objective-C
@interface UIGestureRecognizer (PSPDFInteractionComponentSupport)
// MARK: Setting up Relationships with Other Components
/// Creates a relationship with gesture recognizers in the given component that
/// will prevent this gesture recognizer from transitioning from `Possible` state
/// until all gesture recognizers in `otherComponent` transition to `Failed` state.
///
/// If any gesture recognizer in `otherComponent` transitions to `Began` or `Ended`
/// state then this gesture recognizer will instead transition to `Failed` state.
///
/// @note Not all components are backed by gesture recognizers, and some components
/// can be backed by gesture recognizers just on one iOS version. Be sure to check
/// documentation of individual components to learn more.
///
/// @param otherComponent Other interaction component.
- (void)pspdf_requireGestureRecognizersInComponentToFail:(PSPDFInteractionComponent *)otherComponent NS_SWIFT_UNAVAILABLE("Use `require(toFail:)` instead.");
@end
Undocumented
-
Creates a relationship with gesture recognizers in the given component that will prevent this gesture recognizer from transitioning from
Possible
state until all gesture recognizers inotherComponent
transition toFailed
state.If any gesture recognizer in
otherComponent
transitions toBegan
orEnded
state then this gesture recognizer will instead transition toFailed
state.Note
Not all components are backed by gesture recognizers, and some components can be backed by gesture recognizers just on one iOS version. Be sure to check documentation of individual components to learn more.
Declaration
Objective-C
- (void)pspdf_requireGestureRecognizersInComponentToFail: (nonnull PSPDFInteractionComponent *)otherComponent;
Parameters
otherComponent
Other interaction component.
-
Creates a relationship with gesture recognizers in the given component that will prevent this gesture recognizer from transitioning from
Possible
state until all gesture recognizers inotherComponent
transition toFailed
state.If any gesture recognizer in
otherComponent
transitions toBegan
orEnded
state then this gesture recognizer will instead transition toFailed
state.Note
Not all components are backed by gesture recognizers, and some components can be backed by gesture recognizers just on one iOS version. Be sure to check documentation of individual components to learn more.
Declaration
Swift
public func require<T>(toFail component: InteractionComponent<T>) where T : AnyObject
Parameters
otherComponent
Other interaction component.