SEssentialsPullToActionDelegate Protocol Reference

Conforms to NSObject
Declared in SEssentialsPullToActionDelegate.h
Availability
Related samples

Overview

The delegate of a SEssentialsPullToAction must adopt the SEssentialsPullToActionDelegate protocol.

These callbacks allow for notifications about certain Pull to Action control events, such as when an action is triggered, and when the control ‘will’ and ‘did’ change state.

The pullToActionTriggeredAction: method gives you an opportunity to perform your action.

Instance Methods

pullToAction:didChangeFromState:toState:

The state of the Pull to Action control has changed.

- (void)pullToAction:(SEssentialsPullToAction *)pullToAction didChangeFromState:(SEssentialsPullToActionState)oldState toState:(SEssentialsPullToActionState)newState

Parameters

oldState

The old state of the control

newState

The new state of the control

Declared In

SEssentialsPullToActionDelegate.h

pullToAction:willChangeFromState:toState:

The state of the Pull to Action control is about to change.

- (void)pullToAction:(SEssentialsPullToAction *)pullToAction willChangeFromState:(SEssentialsPullToActionState)oldState toState:(SEssentialsPullToActionState)newState

Parameters

oldState

The old state of the control

newState

The new state of the control

Declared In

SEssentialsPullToActionDelegate.h

pullToActionTriggeredAction:

An action has been triggered on the Pull to Action control.

- (void)pullToActionTriggeredAction:(SEssentialsPullToAction *)pullToAction

Discussion

This will be called when a gesture pulls the control down past its pullThreshold, and then the gesture finishes.

When the triggered action has completed, you will need to call actionCompleted on the pullToAction object to signal that the Pull to Action control should return to an idle position.

Declared In

SEssentialsPullToActionDelegate.h