SkillzBaseDelegate Protocol Reference

Conforms to NSObject
Declared in SkillzInstance.h

Overview

SkillzBaseDelegate is the protocol used by applications to interface with Skillz.

Do NOT define an object as conforming to SkillzBaseDelegate, rather your delegate should conform either to SkillzDelegate or SkillzTurnBasedDelegate

Required methods in this protocol should be implemented in your application for basic Skillz functionality.

– skillzWillExit

This method will be called when the Skillz SDK will exit. It will NOT be called when a Skillz Tournament is launched.

- (void)skillzWillExit

Declared In

SkillzInstance.h

– skillzWillLaunch

This method will be called before the Skillz UI launches. Use this to clean up any state needed before you launch Skillz.

- (void)skillzWillLaunch

Declared In

SkillzInstance.h

– skillzHasFinishedLaunching

This method will be called once the Skillz UI has finished displaying. Use this to clean up your view hierarchy.

- (void)skillzHasFinishedLaunching

Declared In

SkillzInstance.h

– userDidDeposit:cashAmount:bonusCashAmount:promoAmount:currencyCode:

This method will be called when a user has successfully made a cash deposit with Skillz. You may use this method for recording and tracking deposits.

- (void)userDidDeposit:(NSString *)userId cashAmount:(NSNumber *)cashAmount bonusCashAmount:(NSNumber *)bonusCashAmount promoAmount:(NSNumber *)promoAmount currencyCode:(NSString *)currencyCode

Parameters

userId

The current logged in player’s Skillz id.

cashAmount

The amount of cash that the player deposited.

bonusCashAmount

The amount of bonus cash the player received with their deposit.

promoAmount

The amount of cash that the player received from a promotional code.

currencyCode

The currency code used for the transaction. (Follows ISO 4217)

Discussion

NOTE: This method will be called in both SANDBOX and PRODUCTION environments.

Declared In

SkillzInstance.h