VOVoucherGameDelegate
@protocol VOVoucherGameDelegate <NSObject>
VOVoucherGameDelegate
is implemented on both the create and claim side of a VOVoucher
to show custom games/challenges if any are implemented.
-
This delegate method is called when a user selects a game to play. Provide a nil object to use the default game implementation. If no default implementation exists, a
GameViewControllerNotFoundException
will be thrown.Declaration
Objective-C
- (UIViewController<VOGameViewControllerProtocol> *) challengeViewControllerForGameData:(VOGameData *)gameData;
Swift
optional func challengeViewController(for gameData: VOGameData!) -> Any!
Parameters
gameData
- The game data associated with the selected game
Return Value
- The view controller used to play the challenge.