Skip to content

Instantly share code, notes, and snippets.

@jaredjenkins
Created October 8, 2013 21:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaredjenkins/6892163 to your computer and use it in GitHub Desktop.
Save jaredjenkins/6892163 to your computer and use it in GitHub Desktop.
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