Mobile SDK iOS: EPZPushPreferencesViewControllerDelegate

From ePrize Developers Wiki

Revision as of 21:20, 6 November 2014 by Anthony-hessler (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Contents

Overview

The EPZPushPreferencesViewControllerDelegate protocol defines methods that a delegate of EPZPushPreferencesViewController can implement to handle actions pertaining to interactions with the class methods.


Tasks

- closePushPreferencesView: required method
- pushPreferencesViewCreated: optional method
- pushPreferencesView:preferenceItemsChanged: optional method


Instance Methods

closePushPreferencesView:

Dispatched when the EPZPushPreferencesViewController's "Close" button is pressed.

- (void) closePushPreferencesView:(EPZPushPreferencesViewController *)controller

Parameters

controller
The instance of EPZPushPreferencesViewController that dispatched the method.

Discussion
The delegate responds to a user clicking on the view’s "Close" button, alerting the delegate to take actions to remove the view from the hierarchy.

Declared In
EPZPushPreferencesViewControllerDelegate.h



pushPreferencesViewCreated:

Dispatched when the EPZPushPreferencesViewController view is fully created.

- (void) pushPreferencesViewCreated:(EPZPushPreferencesViewController *)controller

Parameters

controller
The instance of EPZPushPreferencesViewController that dispatched the method.

Discussion
The delegate responds to the EPZPushPreferencesViewController view being successfully and fully created. This method is a convenience method you can use if you desire to know when the view was created, to handle other actions in other parts of your application.

Declared In
EPZPushPreferencesViewControllerDelegate.h



pushPreferencesView:preferenceItemsChanged:

Dispatched when the value of an EPZPreferenceItem changes.

- (void) pushPreferencesView:(EPZPushPreferencesViewController *)controller preferenceItemsChanged:(NSDictionary *)preferenceItems

Parameters

controller
The instance of EPZPushPreferencesViewController that dispatched the method.
preferenceItems
A dictionary object with EPZPushPreferenceItem object(s) whose values were changed. The key for each EPZPushPreferenceItem in this dictionary is the item's preferenceID value.

Discussion
The delegate responds to an event where one or more preference item values change.

Declared In
EPZPushPreferencesViewControllerDelegate.h

Personal tools