VOPersonalizationOptionViewControllerDelegate
@protocol VOPersonalizationOptionViewControllerDelegate <NSObject>
VOPersonalizationOptionViewControllerDelegate
is the delegate used for passing information between all of the default
personalization option view controllers and the voucher creation view controller. If an extra personalization option view
controller is created, it should call these delegate methods where appropriate.
-
This delegate is called when a personalization option has added or edited a personalized item.
Declaration
Objective-C
- (void)personalizationOptionViewController: (UIViewController<VOPersonalizationOptionViewControllerProtocol> *) viewController personalizationOption: (VOPersonalizationOption *)personalizationOption selectedPersonalizedObject:(id)selectedPersonalizedObject;
Swift
func personalizationOptionViewController(_ viewController: Any!, personalizationOption: VOPersonalizationOption!, selectedPersonalizedObject: Any!)
Parameters
viewController
- The view controller that added / edited the personalized object.
personalizationOption
- The personalizationOption associated with the selectedPersonalizedObject.
selectedPersonalizedObject
- The item to be added to the
VOVoucher
and shown in the voucher creation view controller. -
This delegate is called when a personalized view controller cancels adding a personalized item.
Declaration
Objective-C
- (void)personalizationOptionViewControllerCancelled: (UIViewController<VOPersonalizationOptionViewControllerProtocol> *) viewController;
Swift
func personalizationOptionViewControllerCancelled(_ viewController: Any!)
Parameters
viewController
- The view controller that was cancelled.