From 7b02207537d35bfa1714bf8beafc921f717d100a Mon Sep 17 00:00:00 2001 From: 单军华 Date: Wed, 11 Jul 2018 10:47:42 +0800 Subject: [PATCH] 首次上传 --- screendisplay/Pods/UMengUShare/UShareSDK/UMSocialSDK/UMSocialCore.framework/Headers/UMSocialHandler.h | 435 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 435 insertions(+), 0 deletions(-) diff --git a/screendisplay/Pods/UMengUShare/UShareSDK/UMSocialSDK/UMSocialCore.framework/Headers/UMSocialHandler.h b/screendisplay/Pods/UMengUShare/UShareSDK/UMSocialSDK/UMSocialCore.framework/Headers/UMSocialHandler.h new file mode 100755 index 0000000..6ae90f3 --- /dev/null +++ b/screendisplay/Pods/UMengUShare/UShareSDK/UMSocialSDK/UMSocialCore.framework/Headers/UMSocialHandler.h @@ -0,0 +1,435 @@ +// +// UMSShareDataTypeTableViewController.h +// SocialSDK +// +// Created by umeng on 16/4/14. +// Copyright �� 2016��� dongjianxiong. All rights reserved. +// + +#import <UIKit/UIKit.h> +#import "UMSocialPlatformConfig.h" +#import "UMSocialPlatformProvider.h" + + +extern NSString *const UMSocialErrorDomain; +extern NSString *const UMSocialShareDataTypeIllegalMessage; + +@class UMSocialHandlerConfig; + +/** + * ��������������������������� + * @discuss + * ������������:������������������������ other link flag -ObjC + * ������������UMSocialHandler������������������������������������������������������ + * 1.+(NSArray*) socialPlatformTypes; ���������������������������������������������������������������������������qq������������������������������������������������������������������������������handler������ + * 2.������load��������� + * + * ��������������� + * +(void)load + * { + * [super load];//������������ + * } + * + * ������������������������������[UMSocialHandler load] + * 3.������defaultManager������������������������������������������defaultManager������������������������������,��������������������� + */ +@interface UMSocialHandler : NSObject<UMSocialPlatformProvider> + +#pragma mark - ������������������������ ++(void)load; ++(NSArray*) socialPlatformTypes; ++ (instancetype)defaultManager; + +#pragma mark - + +@property (nonatomic, copy) NSString *appID; + +@property (nonatomic, copy) NSString *appSecret; + +@property (nonatomic, copy) NSString *redirectURL; + +/** + * ������ViewController���������������������������������������������������������������������ViewController��� + * since 6.3���currentViewController������������������������������������������������������������������UIViewController��������������������������� + * ���������������������currentViewController���������������������������������������������������������������������������������������������������������������������������������������������������������������nil,������������������������������ + */ +@property (nonatomic, weak) UIViewController *currentViewController; + +@property (nonatomic, copy) UMSocialRequestCompletionHandler shareCompletionBlock; + +@property (nonatomic, copy) UMSocialRequestCompletionHandler authCompletionBlock; + +@property (nonatomic, copy) UMSocialRequestCompletionHandler userinfoCompletionBlock; + + +-(BOOL)searchForURLSchemeWithPrefix:(NSString *)prefix; +-(void)setAppId:(NSString *)appID appSecret:(NSString *)secret url:(NSString *)url; +-(void)saveuid:(NSString *)uid openid:(NSString *)openid accesstoken:(NSString *)token refreshtoken:(NSString *)retoken expiration:(id )expiration; + +#pragma mark - 6.0.3��������������������������� +@property(nonatomic,readonly,strong)UMSocialHandlerConfig* handlerConfig; + + +@end + + +/** + * ��������������������������� + */ +@interface UMSocialHandler (UMSocialLimit) + +/** + * ��������������������������������������������������� + * + * @param text ��������� + * @param textLimit ��������������������� + * + * @return YES ���������������������NO ������������������ + */ +-(BOOL) checkText:(NSString*)text withTextLimit:(NSUInteger)textLimit; + + +/** + * ��������������������������������������������������� + * + * @param data ��������� + * @param dataLimit ��������������������� + * + * @return YES ���������������������NO ������������������ + */ +-(BOOL) checkData:(NSData*)data withDataLimit:(NSUInteger)dataLimit; + +/** + * ������������������������������������������ + * + * @param text ��������� + * @param textLimit ��������������������� + * + * @return ������������������������ + */ +-(NSString*)truncationText:(NSString*)text withTextLimit:(NSUInteger)textLimit; + + +/** + * ��������������������������������������������������������� + * + * @param imageData ��������������������� + * @param imageLimit ��������������������� + * + * @return ��������������������� + * @dicuss ��������������������������������������������������������������������������������������������������������� + */ +-(NSData*)compressImageData:(NSData*)imageData withImageLimit:(NSUInteger)imageLimit; + +@end + + +#pragma mark - 6.0.3��������������������������������������������������������������� + +/** + * UMeng ��������������������������������� + */ +@interface UMSocialShareObjectConfig : NSObject + +/** + * ������ + * @note ��������������������������������������������� + */ +@property (nonatomic, readwrite,assign) NSUInteger titleLimit; + +/** + * ������ + * @note ��������������������������������������������������� + */ +@property (nonatomic, readwrite,assign) NSUInteger descrLimit; + +/** + * ������������������������ + */ +@property (nonatomic, readwrite,assign) NSUInteger thumbImageDataLimit; + +/** + * ���������URL��������� + */ +@property (nonatomic, readwrite,assign) NSUInteger thumbImageUrlLimit; + + +/** + * ���������������������������������������������������������������scheme + * @warning ������������255 + * //sina������������������������ + * @discuss ��������������������� + */ +//@property (nonatomic, strong) NSString *schemeLimit; + +/** + * @note ������������������64������ + * //������������������������ + * @discuss ��������������������� + */ +//@property (nonatomic, retain) NSString *mediaTagName; + +@end +/** + * ��������������������������� + * + */ +@interface UMSocialShareTextObjectConfig : UMSocialShareObjectConfig + +/** + * ��������������������� + */ +@property(nonatomic,readwrite,assign)NSUInteger textLimit; + +@end + + +/** + * ��������������������������� + */ +@interface UMSocialShareImageObjectConfig : UMSocialShareObjectConfig + +/** + * ������������������������ + */ +@property (nonatomic, readwrite,assign) NSUInteger shareImageDataLimit; + +/** + * ������������������URL������ + */ +@property (nonatomic, readwrite,assign) NSUInteger shareImageURLLimit; + +@end + + +/** + * ��������������������������� + */ +@interface UMSocialShareMusicObjectConfig : UMSocialShareObjectConfig + +/** + * ���������������url������ + */ +@property (nonatomic, readwrite,assign)NSUInteger musicUrlLimit; + +/** + * ������lowband���������url������ + */ +@property (nonatomic, readwrite,assign)NSUInteger musicLowBandUrlLimit; + +/** + * ������������url������ + */ +@property (nonatomic, readwrite,assign)NSUInteger musicDataUrlLimit; + +/** + * ������lowband������url������ + */ +@property (nonatomic, readwrite,assign)NSUInteger musicLowBandDataUrlLimit; + +@end + +/** + * ��������������������������� + */ +@interface UMSocialShareVideoObjectConfig : UMSocialShareObjectConfig + +/** + * ���������������url + */ +@property (nonatomic, readwrite,assign) NSUInteger videoUrlLimit; + +/** + * ������lowband���������url + */ +@property (nonatomic, readwrite,assign) NSUInteger videoLowBandUrlLimit; + +/** + * ���������������url + */ +@property (nonatomic, readwrite,assign) NSUInteger videoStreamUrlLimit; + +/** + * ������lowband���������url + */ +@property (nonatomic, readwrite,assign) NSUInteger videoLowBandStreamUrlLimit; + +@end + +/** + * ������webURL + */ +@interface UMSocialShareWebpageObjectConfig : UMSocialShareObjectConfig + +/** + * ���������url������ + */ +@property (nonatomic, readwrite,assign) NSUInteger webpageUrlLimit; + +@end + +/** + * ������Email��������������� + */ +@interface UMSocialShareEmailObjectConfig : UMSocialShareObjectConfig + +/** + * ��������� + */ +@property (nonatomic, readwrite,assign) NSUInteger toRecipientLimit; + +/** + * ��������� + */ +@property (nonatomic, readwrite,assign) NSUInteger ccRecipientLimit; + +/** + * ��������� + */ +@property (nonatomic, readwrite,assign) NSUInteger bccRecipientLimit; + +/** + * ������������ + */ +@property (nonatomic, readwrite,assign) NSUInteger emailContentLimit; + +/** + * ������������ + */ +@property (nonatomic, readwrite,assign) NSUInteger emailImageDataLimit; + +/** + * ������URL������ + */ +@property (nonatomic, readwrite,assign) NSUInteger emailImageUrlLimit; + +/** + * ���������NSData��� + */ +@property (nonatomic, readwrite,assign) NSUInteger emailSendDataLimit; + +/** + * ��������������������� + */ +@property (nonatomic, readwrite,strong) NSArray *fileType; + +/** + * ���������,(������������ imageName.png, ���������������������������������������������������������������������������������������������) + */ +@property (nonatomic, readwrite,assign) NSUInteger fileNameLimit; + + +@end + +/** + * ������Email��������������� + */ +@interface UMSocialShareSmsObjectConfig : UMSocialShareObjectConfig + +/** + * ��������� + */ +@property (nonatomic, readwrite,assign) NSUInteger recipientLimit; + +/** + * ������������ + */ +@property (nonatomic, readwrite,assign) NSUInteger smsContentLimit; + +/** + * ������ + */ +@property (nonatomic, readwrite,assign) NSUInteger smsImageDataLimit; +@property (nonatomic, readwrite,assign) NSUInteger smsImageUrlLimit; + +/** + * ���������������NSData��� + * ������ + */ +@property (nonatomic, readwrite,assign) NSUInteger smsSendDataLimit; + +/** + * ������������ + * ���������������������������������������png���������������������@"png" + */ +@property (nonatomic, readwrite,strong) NSArray *fileType; + +/** + * ���������,(������������ imageName.png, ���������������������������������������������������������������������������������������������) + */ +@property (nonatomic, readwrite,assign) NSUInteger fileNameLimit; + +/** + * ������������url + */ +@property (nonatomic, readwrite,assign) NSUInteger fileUrlLimit; + +@end + +/** + * ������������������������������������������������������ + */ +@interface UMSocialShareEmotionObjectConfig : UMSocialShareObjectConfig + +//��������������������������� +@property(nonatomic,readwrite,assign)NSUInteger emotionDataLimit; + +@end + + +/** + * ������������������������������������������������������ + */ +@interface UMSocialShareFileObjectConfig : UMSocialShareObjectConfig + +@property (nonatomic, readwrite,assign) NSUInteger fileExtensionLimit; + +@property (nonatomic, readwrite,assign) NSUInteger fileDataLimit; + +@end + +/** + * ��������������������������������������������������� + */ +@interface UMSocialShareExtendObjectConfig : UMSocialShareObjectConfig + +@property (nonatomic, readwrite,assign) NSUInteger urlLimit; + +@property (nonatomic, readwrite,assign) NSUInteger extInfoLimit; + +@property (nonatomic, readwrite,assign) NSUInteger fileDataLimit; + +@end + + + + +/** + * ��������������������������� + * ��������������� + * 1.��������������������������� + * + */ +@interface UMSocialHandlerConfig : NSObject + +@property(nonatomic,readwrite,strong)UMSocialShareTextObjectConfig* shareTextObjectConfig; +@property(nonatomic,readwrite,strong)UMSocialShareImageObjectConfig* shareImageObjectConfig; +@property(nonatomic,readwrite,strong)UMSocialShareMusicObjectConfig* shareMusicObjectConfig; +@property(nonatomic,readwrite,strong)UMSocialShareVideoObjectConfig* shareVideoObjectConfig; +@property(nonatomic,readwrite,strong)UMSocialShareWebpageObjectConfig* shareWebpageObjectConfig; +@property(nonatomic,readwrite,strong)UMSocialShareEmailObjectConfig* shareEmailObjectConfig; +@property(nonatomic,readwrite,strong)UMSocialShareSmsObjectConfig* shareSmsObjectConfig; +@property(nonatomic,readwrite,strong)UMSocialShareEmotionObjectConfig* shareEmotionObjectConfig; +@property(nonatomic,readwrite,strong)UMSocialShareFileObjectConfig* shareFileObjectConfig; +@property(nonatomic,readwrite,strong)UMSocialShareExtendObjectConfig* shareExtendObjectConfig; + +//���������������text��������������������������������� ++(BOOL) checkText:(NSString*)text withTextLimit:(NSUInteger)textLimit; ++(BOOL) checkData:(NSData*)data withDataLimit:(NSUInteger)dataLimit; ++(NSString*) truncationText:(NSString*)text withTextLimit:(NSUInteger)textLimit; + +//������������ ++ (NSData *)compressImageData:(NSData*)imageData toLength:(CGFloat)imageLimit; ++ (NSData *)compressImage:(UIImage*)image toLength:(CGFloat)imageLimit; + +@end -- Gitblit v1.8.0