Republic Project MRAID SDK  1.0
 All Classes Functions Properties
RPShareKit.h
1 //
2 // Copyright 2012 ArcTouch, Inc.
3 // All rights reserved.
4 //
5 // This file, its contents, concepts, methods, behavior, and operation
6 // (collectively the "Software") are protected by trade secret, patent,
7 // and copyright laws. The use of the Software is governed by a license
8 // agreement. Disclosure of the Software to third parties, in any form,
9 // in whole or in part, is expressly prohibited except as authorized by
10 // the license agreement.
11 //
12 
13 #import "RPShareableMessage.h"
14 #import "RPFacebookDialogViewController.h"
15 
16 @protocol RPShareKitDelegate;
17 
19 
20 @property (nonatomic, strong) UIViewController *viewController;
21 @property (nonatomic, assign) id<RPShareKitDelegate> delegate;
22 @property (nonatomic, strong) NSString *currentId;
23 
24 - (id)initWithViewController:(UIViewController *)viewController;
25 - (void)shareOnFacebookWithMessage:(RPShareableMessage *)shareableMessage;
26 - (void)shareOnTwitterWithMessage:(RPShareableMessage *)shareableMessage;
27 - (void)shareOnDialogWithMessage:(RPShareableMessage *)shareableMessage;
28 
29 @end
30 
31 @protocol RPShareKitDelegate <NSObject>
32 
33 - (void)shareKit:(RPShareKit *)shareKit didFinishSharingWithFacebook:(BOOL)success;
34 - (void)shareKit:(RPShareKit *)shareKit didFinishSharingWithTwitter:(BOOL)success;
35 - (void)shareKit:(RPShareKit *)shareKit didFinishSharingWithDialog:(BOOL)success;
36 
37 @end