Instance Method

previewInteractionShouldBegin:

Asks the delegate whether a preview interaction is allowed to begin.

Declaration

- (BOOL)previewInteractionShouldBegin:(UIPreviewInteraction *)previewInteraction;

Parameters

previewInteraction

The preview interaction that is responding to user input

Return Value

YES if the preview interaction should continue into the preview and commit phases; otherwise NO.

Discussion

If you don't implement this optional method, the default return value of YES is assumed.

When NO, no further delegate calls are made for the specified preview interaction until the user restarts the 3D Touch interaction.

See Also

Preview Interaction Delegate Methods

- previewInteraction:didUpdatePreviewTransition:ended:

Informs the delegate of the progress through the preview phase of the preview interaction.

Required.

- previewInteraction:didUpdateCommitTransition:ended:

Informs the delegate of the preview interaction's progress through the commit phase.

- previewInteractionDidCancel:

Informs the delegate that the specified preview interaction was canceled.

Required.