Created
October 8, 2013 21:36
-
-
Save jaredjenkins/6892163 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
id<PlaynomicsFrameDelegate> frameDelegate; | |
/* | |
frameDelegate is delegate which observes state changes in the frame: | |
@protocol PlaynomicsFrameDelegate <NSObject> | |
@optional | |
-(void) onShow: (NSDictionary *) jsonData; | |
-(void) onTouch: (NSDictionary *) jsonData; | |
-(void) onClose: (NSDictionary *) jsonData; | |
-(void) onDidFailToRender; | |
@end | |
You don't need to pass a delegate when showing the frame, but this allows | |
your game to receive Rich Data (the NSDictionary) from creatives and when to | |
pause/resume your game. | |
*/ | |
[Playnomics showFrameWithId: frameId delegate: frameDelegate]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment