VOHtmlGameData

@interface VOHtmlGameData : VOGameData

VOHtmlGameData is a VOGameData with additional properties specifically for html games.

  • The url to the html game.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) NSString *_Nonnull gameUrl;

    Swift

    var gameUrl: String { get }
  • A hex value for the background color of the game. This color is shown as the background color of the SKWebView.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) NSString *_Nonnull colorHex;

    Swift

    var colorHex: String { get }
  • A hex value for the background color of the game over screen.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nullable) NSString *endColorHex;

    Swift

    var endColorHex: String? { get }
  • A hex value for the button color of the game.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) NSString *_Nonnull buttonColorHex;

    Swift

    var buttonColorHex: String { get }
  • An image url to show on the game over screen instead of a background color.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nullable) NSString *endImageUrl;

    Swift

    var endImageUrl: String? { get }
  • Default initializer for VOHtmlGameData from a dictionary. Internally calls initWithDictionary on VOGameData.

    Declaration

    Objective-C

    + (nonnull instancetype)htmlGameDataFromDictionary:
        (nonnull NSDictionary *)dictionary;

    Swift

    convenience init(from dictionary: [AnyHashable : Any])

    Parameters

    dictionary

    - dictionary form of VOHtmlGameData.

    Return Value

    Instance of VOHtmlGameData.

  • Converts a VOHtmlGameData to an NSDictionary that can be used for caching or sending to the server.

    Declaration

    Objective-C

    - (nonnull NSDictionary *)dictionaryRepresentation;

    Swift

    func dictionaryRepresentation() -> [AnyHashable : Any]

    Return Value

    dictionary - Dictionary form of a VOHtmlGameData.