-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathBounceGallerySharing.h
37 lines (29 loc) · 982 Bytes
/
BounceGallerySharing.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
// BounceGallerySharing.h
//
// Created by Eli Gregory on 5/7/15.
// Copyright (c) 2015 Stublisher Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <Social/Social.h>
#import <MessageUI/MessageUI.h>
#import <UIKit/UIKit.h>
#import "BounceGalleryImageRef.h"
typedef enum
{
SharingTypeFacebook,
SharingTypeTwitter
}
SharingType;
@interface BounceGallerySharing : NSObject
+(instancetype)shared;
+(BOOL)canShareFacebook:(BounceGalleryImageRef*)img;
+(BOOL)canShareTwitter:(BounceGalleryImageRef*)img;
+(BOOL)canShareEmail:(BounceGalleryImageRef*)img;
+(BOOL)canShareMMS:(BounceGalleryImageRef*)img;
+(SLComposeViewController*)facebookShareImage:(BounceGalleryImageRef*)img;
+(SLComposeViewController*)twitterShareImage:(BounceGalleryImageRef*)img;
+(MFMailComposeViewController*)mailImage:(BounceGalleryImageRef*)img;
+(MFMessageComposeViewController*)mmsImage:(BounceGalleryImageRef*)img;
+(NSString*)SLStringForType:(SharingType)type;
@end