VoucherGameDelegate

@protocol VoucherGameDelegate <NSObject>

VoucherGameDelegate is implemented on both the create and claim side of a Voucher 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<GameViewControllerProtocol> *)
    challengeViewControllerForGameData:(GameData *)gameData;

    Swift

    optional func challengeViewController(for gameData: GameData!) -> Any!

    Parameters

    gameData

    - The game data associated with the selected game

    Return Value

    - The view controller used to play the challenge.