KiipDelegate Protocol Reference

Conforms to NSObject
Declared in Kiip.h

Overview

The KiipDelegate protocol defines the methods that a delegate of Kiip should implement. This delegate implements the session, swarm and virtual content callbacks.

Managing Kiip Sessions

– kiip:didStartSessionWithPoptart:error:

Tells the delegate that Kiip attempted to start a new session.

- (void)kiip:(Kiip *)kiip didStartSessionWithPoptart:(KPPoptart *)poptart error:(NSError *)error

Parameters

kiip

The Kiip instance that started the session.

poptart

A unit to be displayed. May be nil.

error

If not nil, an error occured.

Discussion

Tells the delegate that Kiip attempted to start a new session.

Declared In

Kiip.h

– kiip:didEndSessionWithError:

Tells the delegate that Kiip attempted to end it’s session.

- (void)kiip:(Kiip *)kiip didEndSessionWithError:(NSError *)error

Parameters

kiip

The Kiip instance that ended the session.

error

If not nil, an error occured.

Discussion

Tells the delegate that Kiip attempted to end it’s session.

Declared In

Kiip.h

Managing Virtual Achievements

– kiip:didReceiveContent:quantity:transactionId:signature:

Tells the delegate that the user has recieved in-game content.

- (void)kiip:(Kiip *)kiip didReceiveContent:(NSString *)content quantity:(int)quantity transactionId:(NSString *)transactionId signature:(NSString *)signature

Parameters

kiip

The Kiip instance that indicated the user should receive in-game content.

content

The identifier of the content that should be awarded to the user.

quantity

The amount of content that should be awarded to the user.

transactionId

The unique identifer of this transaction.

signature

The HMAC that can be checked to validate this transaction.

Discussion

Tells the delegate that the user has recieved in-game content.

Declared In

Kiip.h

Video Playback Callbacks

– kiipVideoPlaybackDidBegin:

Tells the delegate that a video session has begun.

- (void)kiipVideoPlaybackDidBegin:(Kiip *)kiip

Parameters

kiip

The Kiip instance that has begun playing video.

Discussion

Tells the delegate that a video session has begun.

Declared In

Kiip.h

– kiipVideoPlaybackDidEnd:

Tells the delegate that a video session has ended.

- (void)kiipVideoPlaybackDidEnd:(Kiip *)kiip

Parameters

kiip

The Kiip instance that has finished playing video.

Discussion

Tells the delegate that a video session has ended.

Declared In

Kiip.h