From 7b02207537d35bfa1714bf8beafc921f717d100a Mon Sep 17 00:00:00 2001 From: 单军华 Date: Wed, 11 Jul 2018 10:47:42 +0800 Subject: [PATCH] 首次上传 --- screendisplay/Pods/EaseUI/EaseUI/EMUIKit/Helper/EaseSDKHelper.h | 193 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 193 insertions(+), 0 deletions(-) diff --git a/screendisplay/Pods/EaseUI/EaseUI/EMUIKit/Helper/EaseSDKHelper.h b/screendisplay/Pods/EaseUI/EaseUI/EMUIKit/Helper/EaseSDKHelper.h new file mode 100755 index 0000000..291a6b9 --- /dev/null +++ b/screendisplay/Pods/EaseUI/EaseUI/EMUIKit/Helper/EaseSDKHelper.h @@ -0,0 +1,193 @@ +/************************************************************ + * * Hyphenate CONFIDENTIAL + * __________________ + * Copyright (C) 2016 Hyphenate Inc. All rights reserved. + * + * NOTICE: All information contained herein is, and remains + * the property of Hyphenate Inc. + * Dissemination of this information or reproduction of this material + * is strictly forbidden unless prior written permission is obtained + * from Hyphenate Inc. + */ + + +#import <UIKit/UIKit.h> +#import <Foundation/Foundation.h> + +#if ENABLE_LITE == 1 +#import <HyphenateLite/HyphenateLite.h> +#else +#import <Hyphenate/Hyphenate.h> +#endif + +/** @brief ��������������������������� */ +#define KNOTIFICATION_LOGINCHANGE @"loginStateChange" +/** @brief ��������������������� */ +#define KNOTIFICATION_CALL @"callOutWithChatter" +/** @brief ��������������������� */ +#define KNOTIFICATION_CALL_CLOSE @"callControllerClose" +/** @brief ������������ext���������������������������@���������id������ */ +#define kGroupMessageAtList @"em_at_list" +/** @brief ������������ext������������kGroupMessageAtList���������������������@��������� */ +#define kGroupMessageAtAll @"all" +/** @brief ������SDK���������������������������������log */ +#define kSDKConfigEnableConsoleLogger @"SDKConfigEnableConsoleLogger" +/** @brief ���������SDK���������Lite������(���������������������������������) */ +#define kEaseUISDKConfigIsUseLite @"isUselibHyphenateClientSDKLite" + +@interface EaseSDKHelper : NSObject<EMClientDelegate> + +/** @brief ���������������imagePickerViewController������ */ +@property (nonatomic) BOOL isShowingimagePicker; + +/** @brief ���������SDK���������Lite������(���������������������������������) */ +@property (nonatomic) BOOL isLite; + ++ (instancetype)shareHelper; + +#pragma mark - init Hyphenate + +/*! + @method + @brief ������3.xSDK��������������������� + @param application UIApplication������ + @param launchOptions ������������(������AppDelegate���������������������������������) + @param appkey ������������appkey + @param apnsCertName ������������������������ + @param otherConfig ������SDK���������������(���������������������������kSDKConfigEnableConsoleLogger������) + */ +- (void)hyphenateApplication:(UIApplication *)application +didFinishLaunchingWithOptions:(NSDictionary *)launchOptions + appkey:(NSString *)appkey + apnsCertName:(NSString *)apnsCertName + otherConfig:(NSDictionary *)otherConfig; + +#pragma mark - receive remote notification + +/*! + @method + @brief ���������������������APNs��������������������������� + @param application UIApplication + @param userInfo ������������ + */ +- (void)hyphenateApplication:(UIApplication *)application +didReceiveRemoteNotification:(NSDictionary *)userInfo; + +#pragma mark - send message + +/*! + @method + @brief ������������������������������ + @discussion ���������id���to��������������������������� + @param text ������������������������ + @param to ������������������������id + @param messageType ��������������������� + @param messageExt ��������������������� + @result ��������������������������� + */ ++ (EMMessage *)getTextMessage:(NSString *)text + to:(NSString *)to + messageType:(EMChatType)messageType + messageExt:(NSDictionary *)messageExt; + +/*! + @method + @brief ������������������������������ + @discussion ���������id���to��������������������������� + @param action ��������������������������� + @param to ������������������������id + @param messageType ��������������������� + @param messageExt ��������������������� + @param cmdParams ���������������������������������������������������������������������EMMessage������������������������ + @result ��������������������������� + */ ++ (EMMessage *)getCmdMessage:(NSString *)action + to:(NSString *)to + messageType:(EMChatType)messageType + messageExt:(NSDictionary *)messageExt + cmdParams:(NSArray *)params; + +/*! + @method + @brief ������������������������������ + @discussion ���������id���to��������������������������� + @param latitude ������ + @param longitude ������ + @param address ������������ + @param to ������������������������id + @param messageType ��������������������� + @param messageExt ��������������������� + @result ��������������������������� + */ ++ (EMMessage *)getLocationMessageWithLatitude:(double)latitude + longitude:(double)longitude + address:(NSString *)address + to:(NSString *)to + messageType:(EMChatType)messageType + messageExt:(NSDictionary *)messageExt; + +/*! + @method + @brief ������������������������������ + @discussion ���������id���to��������������������������� + @param imageData ������������(NSData������) + @param to ������������������������id + @param messageType ��������������������� + @param messageExt ��������������������� + @result ��������������������������� + */ ++ (EMMessage *)getImageMessageWithImageData:(NSData *)imageData + to:(NSString *)to + messageType:(EMChatType)messageType + messageExt:(NSDictionary *)messageExt; + +/*! + @method + @brief ������������������������������ + @discussion ���������id���to��������������������������� + @param image ������(UIImage������) + @param to ������������������������id + @param messageType ��������������������� + @param messageExt ��������������������� + @result ��������������������������� + */ ++ (EMMessage *)getImageMessageWithImage:(UIImage *)image + to:(NSString *)to + messageType:(EMChatType)messageType + messageExt:(NSDictionary *)messageExt; + +/*! + @method + @brief ������������������������������ + @discussion ���������id���to��������������������������� + @param localPath ��������������������������������� + @param duration ������������ + @param to ������������������������id + @param messageType ��������������������� + @param messageExt ��������������������� + @result ��������������������������� + */ ++ (EMMessage *)getVoiceMessageWithLocalPath:(NSString *)localPath + duration:(NSInteger)duration + to:(NSString *)to + messageType:(EMChatType)messageType + messageExt:(NSDictionary *)messageExt; + +/*! + @method + @brief ������������������������������ + @discussion ���������id���to��������������������������� + @param url ������������������������url + @param to ������������������������id + @param messageType ��������������������� + @param messageExt ��������������������� + @result ��������������������������� + */ ++ (EMMessage *)getVideoMessageWithURL:(NSURL *)url + to:(NSString *)to + messageType:(EMChatType)messageType + messageExt:(NSDictionary *)messageExt; + +#pragma mark - call + +@end -- Gitblit v1.8.0