BBASMPlugin+ShowModal.h
1.46 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
//
// BBASMPlugin+ShowModal.h
// BBAMNP
//
// Created by baidu on 2019/9/26.
//
#import <BBASchemeDispatcher/BBASchemeDispatcher.h>
#import "BBASMPlugin.h"
NS_ASSUME_NONNULL_BEGIN
@interface BBASMPlugin (ShowModal)
/**
* 描 述: 展示模态弹窗
* 示 例: baiduboxapp://swanAPI/showModal?params={"title":"标题","content":"提示内容","showCancel":false}&callback=_bdbox_js_729&upgrade=0
* 文 档: http://ft.baidu.com/#/scheme/utils_showmodal
* 备 注:
* ********** description ************
* @name: showModal
* @authority: swanAPI
* @path: /showModal
* @args: [{"name": "title", "value": "string"}, {"name": "content", "value": "string"}, {"name": "showCancel", "value": "boolean="}, {"name": "cancelText", "value": "string="}, {"name": "confirmText", "value": "string="}, {"name": "cancelColor", "value": "string="}, {"name": "confirmColor", "value": "string="}, {"name": "cb", "value": "string"}]
* @config: {"swan": {"web": {"invoke": "swan.message.url", "handler": "bridge"}, "jsc": {"invoke": "swan.method.json", "method": "_naSwan.bridge.interactionBridge.showModal"}}}
*/
- (void)showModal:(BBASchemeDispatcher *)command;
#pragma mark - not API
+ (NSDictionary *)showModalWithAppID:(NSString *)appId
params:(NSDictionary *)dic
actionName:(NSString *)action
completion:(void (^)(NSDictionary *completionData))completion;
@end
NS_ASSUME_NONNULL_END