VOGameViewControllerDelegate

@protocol VOGameViewControllerDelegate <NSObject>

VOGameViewControllerDelegate is used to notify the delegate of any changes a game view controller makes to the VOGameData.

  • This method will be called anytime a game view controller updated a property in the VOGameData.

    Declaration

    Objective-C

    - (void)gameDifficultyUpdatedWithGameData:(nonnull VOGameData *)gameData;

    Swift

    func gameDifficultyUpdated(with gameData: VOGameData)
  • This method will be called anytime a game view controller finishes playing a game.

    Declaration

    Objective-C

    - (void)gameCompletedWithScore:(NSInteger)score
                          gameData:(nullable VOGameData *)gameData;

    Swift

    optional func gameCompleted(withScore score: Int, gameData: VOGameData?)
  • This method gets called when the user opts to share their score

    Declaration

    Objective-C

    - (void)gameShareWithScore:(NSInteger)score
                      gameData:(nonnull VOGameData *)gameData;

    Swift

    optional func gameShare(withScore score: Int, gameData: VOGameData)