MCLDelegate
@protocol MCLDelegate <NSObject>
-
Optional callback when a user has completed a share.
Integration:
1) Add a MCLDelegate to your Interface:
\@interface ViewController ()<MCLDelegate>
2) Set Delegate to self:
[[Megacool sharedMegacool] setDelegate:self];
3) Implement the method somewhere in your code:
- (void) megacoolDidCompleteShare { NSLog(@"Reward Player"); }
Note
This method being called does not imply that anyone has actually joined the game from the share, only that the share was sent over some channel.Declaration
Objective-C
- (void)megacoolDidCompleteShare;
Swift
optional func megacoolDidCompleteShare()
-
Optional callback when a user has aborted (dismissed) a share.
Integration:
1) Add a MCLDelegate to your Interface:
\@interface ViewController ()<MCLDelegate>
2) Set Delegate to self:
[[Megacool sharedMegacool] setDelegate:self];
3) Add the method somewhere in your code:
- (void)megacoolDidDismissShareView{ NSLog(@"Dismissed sharing"); }
Declaration
Objective-C
- (void)megacoolDidDismissShareView;
Swift
optional func megacoolDidDismissShareView()