BBASMPublishPlugin.h
5.48 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
//
// BBASMPlugin+openCommunityEditor.h
// BBAMNP
//
// Created by Yang,Shuo(MBD) on 2019/6/14.
// Copyright © 2019 Baidu. All rights reserved.
//
#import <BBASchemeDispatcher/BBASchemeDispatcher.h>
/// 注册publish 为 Module 的Plugin
extern NSString *const kBBASMPublishModuleName;
/**
* 帖子发布器和帖子评论
*/
@interface BBASMPublishPlugin : BBASDPluginBase
/**
* 描 述: 打开app发布器
* 示 例: baiduboxapp://swanAPI/openCommunityEditor?params={"titlePlaceholder":"请输入标题","contentPlaceholder":"请输入正文","imgUploadUrl":"https://xxx.com/xxx","emojiPath":"/pages/home/home","cb":"cb"}&callback=callback&upgrade=0&oauthType=swan
* 文 档: http://es.baidu-int.com/index#/apidetail/710
* 备 注:
* ********** description ************
* @name: openCommunityEditor
* @authority: swanAPI
* @path: /community/openCommunityEditor
* @args: [{"name": "cb", "value": "string"}, {"name": "contentPlaceholder", "value": "string="}, {"name": "titlePlaceholder", "value": "string="}, {"name": "moduleList", "value": "Array="}, {"name": "imageConf", "value": "Object="}, {"name": "navBarTitleText", "value": "string="}, {"name": "navBarBackgroundColor", "value": "string="}, {"name": "navBarTextStyle", "value": "string="}, {"name": "confirmText", "value": "string="}, {"name": "confirmColor", "value": "string="}, {"name": "cancelText", "value": "string="}, {"name": "cancelColor", "value": "string="}, {"name": "targetText", "value": "string="}, {"name": "emojiPath", "value": "string="}]
* @config: {"swan": {"web": {"invoke": "swan.message.url", "handler": "bridge"}, "jsc": {"invoke": "swan.method.json", "method": "_naSwan.bridge.commentBridge.openCommunityEditor"}}}
*/
- (void)openCommunityEditor:(BBASchemeDispatcher *)dispatcher;
/**
* 描 述: 关闭app发布器
* 示 例: baiduboxapp://swanAPI/closeCommunityEditor?params={"cb":"cb"}&callback=callback&upgrade=0&oauthType=swan
* 文 档: http://es.baidu-int.com/#/apiedit/713
* 备 注:
* ********** description ************
* @name: closeCommunityEditor
* @authority: swanAPI
* @path: /community/closeCommunityEditor
* @args: [{"name": "cb", "value": "string"}]
* @config: {"swan": {"web": {"invoke": "swan.message.url", "handler": "bridge"}, "jsc": {"invoke": "swan.method.json", "method": "_naSwan.bridge.commentBridge.closeCommunityEditor"}}}
*/
- (void)closeCommunityEditor:(BBASchemeDispatcher *)dispatcher;
/**
* 描 述: 打开回复发布器
* 示 例: baiduboxapp://swanAPI/openReplyEditor?params={"contentPlaceholder":"请输入正文","emojiPath":"/pages/home/home","cb":"cb"}&callback=callback&upgrade=0&oauthType=swan
* 文 档: http://es.baidu-int.com/#/apidetail/782
* 备 注:
* ********** description ************
* @name: openReplyEditor
* @authority: swanAPI
* @path: /community/openReplyEditor
* @args: [{"name": "emojiPath", "value": "string="},{"name": "sendBackgroundColor", "value": "string="}, {"name": "sendTextColor", "value": "string="}, {"name": "sendText", "value": "string="}, {"name": "moduleList", "value": "Array="}, {"name": "contentPlaceholder", "value": "string="}, {"name": "cb", "value": "string"}]
* @config: {"swan": {"web": {"invoke": "swan.message.url", "handler": "bridge"}, "jsc": {"invoke": "swan.method.json", "method": "_naSwan.bridge.commentBridge.openReplyEditor"}}}
*/
- (void)openReplyEditor:(BBASchemeDispatcher *)dispatcher;
/**
* 描 述: 关闭app回复评论发布器
* 示 例: baiduboxapp://swanAPI/closeReplyEditor?params={"cb":"cb"}&callback=callback&upgrade=0&oauthType=swan
* 文 档: http://es.baidu-int.com/#/apidetail/783
* 备 注:
* ********** description ************
* @name: closeReplyEditor
* @authority: swanAPI
* @path: /community/closeReplyEditor
* @args: [{"name": "cb", "value": "string"}]
* @config: {"swan": {"web": {"invoke": "swan.message.url", "handler": "bridge"}, "jsc": {"invoke": "swan.method.json", "method": "_naSwan.bridge.commentBridge.closeReplyEditor"}}}
*/
- (void)closeReplyEditor:(BBASchemeDispatcher *)dispatcher;
#pragma mark - not API
/**
* @brief 打开全屏发布器
*
* @param paramDict 参数
* @param appID xcx
* @param completion 二级cb
* @return dict
*/
+ (NSDictionary *)openCommunityEditorParam:(NSDictionary *)paramDict
appId:(NSString *)appID
completion:(void (^)(NSDictionary *completionData))completion;
/**
* @brief 关闭全屏发布器
*
* @param paramDict 参数
* @param appID xcx
* @param completion 二级cb
* @return dict
*/
+ (NSDictionary *)closeCommunityEditorParam:(NSDictionary *)paramDict
appId:(NSString *)appID
completion:(void (^)(NSDictionary *completionData))completion;
/**
* @brief 打开回复半屏发布器
*
* @param paramDict 参数
* @param appID xcx
* @param completion 二级cb
* @return dict
*/
+ (NSDictionary *)openReplyEditorParam:(NSDictionary *)paramDict
appId:(NSString *)appID
completion:(void (^)(NSDictionary *completionData))completion;
/**
* @brief 关闭回复半屏发布器
*
* @param paramDict 参数
* @param appID xcx
* @param completion 二级cb
* @return dict
*/
+ (NSDictionary *)closeReplyEditorParam:(NSDictionary *)paramDict
appId:(NSString *)appID
completion:(void (^)(NSDictionary *completionData))completion;
@end