Skip to content

Commit 1604c7d

Browse files
committed
update iOS SDK
1 parent 3e5ab54 commit 1604c7d

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

ios/RCTQQSDK/RCTQQSDK.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ - (NSDictionary *)constantsToExport {
194194
}
195195

196196
- (void)shareTextToQQZone:(NSString *)text {
197-
QQApiImageArrayForQZoneObject *txtObj = [QQApiImageArrayForQZoneObject objectWithimageDataArray:nil title:text];
197+
QQApiImageArrayForQZoneObject *txtObj = [QQApiImageArrayForQZoneObject objectWithimageDataArray:nil title:text extMap:nil];
198198
SendMessageToQQReq *req = [SendMessageToQQReq reqWithContent:txtObj];
199199
QQApiSendResultCode sent = [QQApiInterface SendReqToQZone:req];
200200
[self handleSendResult:sent];

ios/RCTQQSDK/TencentOpenAPI.framework/Headers/QQApiInterfaceObject.h

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,37 +195,42 @@ __attribute__((visibility("default"))) @interface QQApiURLObject : QQApiObject
195195
@interface QQApiImageArrayForQZoneObject : QQApiObject
196196

197197
@property(nonatomic,retain) NSArray* imageDataArray;///图片数组
198+
@property(nonatomic,retain) NSDictionary* extMap; // 扩展字段
198199

199200
/**
200201
初始化方法
201202
@param imageDataArray 图片数组
202203
@param title 写说说的内容,可以为空
204+
@param extMap 扩展字段
203205
*/
204-
- (id)initWithImageArrayData:(NSArray*)imageDataArray title:(NSString*)title;
206+
- (id)initWithImageArrayData:(NSArray*)imageDataArray title:(NSString*)title extMap:(NSDictionary *)extMap;
205207

206208
/**
207209
helper方法获取一个autorelease的<code>QQApiExtendObject</code>对象
208210
@param title 写说说的内容,可以为空
209211
@param imageDataArray 发送的多张图片队列
212+
@param extMap 扩展字段
210213
@return
211214
一个自动释放的<code>QQApiExtendObject</code>实例
212215
*/
213-
+ (id)objectWithimageDataArray:(NSArray*)imageDataArray title:(NSString*)title;
216+
+ (id)objectWithimageDataArray:(NSArray*)imageDataArray title:(NSString*)title extMap:(NSDictionary *)extMap;
214217

215218
@end
216219

217220
// QQApiVideoForQZoneObject
218221
/** @brief 视频对象
219222
用于分享视频到空间,走写说说路径<code>QQApiObject</code>
220223
assetURL可传ALAsset的ALAssetPropertyAssetURL,或者PHAsset的localIdentifier
224+
@param extMap 扩展字段
221225
*/
222226
@interface QQApiVideoForQZoneObject : QQApiObject
223227

224228
@property(nonatomic, retain) NSString *assetURL;
229+
@property(nonatomic,retain) NSDictionary* extMap; // 扩展字段
225230

226-
- (id)initWithAssetURL:(NSString*)assetURL title:(NSString*)title;
231+
- (id)initWithAssetURL:(NSString*)assetURL title:(NSString*)title extMap:(NSDictionary *)extMap;
227232

228-
+ (id)objectWithAssetURL:(NSString*)assetURL title:(NSString*)title;
233+
+ (id)objectWithAssetURL:(NSString*)assetURL title:(NSString*)title extMap:(NSDictionary *)extMap;
229234

230235
@end
231236

Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)