BBASMPlugin+PhoneContact.h
3.7 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
//
// BBASMPlugin+PhoneContact.h
// SWAN
//
// Created by baidu on 2018/5/30.
// Copyright © 2018年 baidu. All rights reserved.
//
#import "BBASMPlugin.h"
@interface BBASMPlugin (PhoneContact)
/**
* 描 述: 添加联系人端能力协议调起
* 示 例: baiduboxapp://swanAPI/setPhoneContact?params=\$params&callback=\$callback
* 文 档: http://ft.baidu.com/#/scheme/swan_setphonecontact
* 备 注:
* ********** description ************
* @name: addPhoneContact
* @authority: swanAPI
* @path: /setPhoneContact
* @args: [{"name": "action", "value": "string"}, {"name": "cb", "value": "string"}, {"name": "firstName", "value": "string"}, {"name": "photoFilePath", "value": "string="}, {"name": "nickName", "value": "string="}, {"name": "lastName", "value": "string="}, {"name": "middleName", "value": "string="}, {"name": "remark", "value": "string="}, {"name": "mobilePhoneNumber", "value": "string="}, {"name": "weChatNumber", "value": "string="}, {"name": "addressCountry", "value": "string="}, {"name": "addressState", "value": "string="}, {"name": "addressCity", "value": "string="}, {"name": "addressStreet", "value": "string="}, {"name": "addressPostalCode", "value": "string="}, {"name": "organization", "value": "string="}, {"name": "title", "value": "string="}, {"name": "workFaxNumber", "value": "string="}, {"name": "workPhoneNumber", "value": "string="}, {"name": "hostNumber", "value": "string="}, {"name": "email", "value": "string="}, {"name": "url", "value": "string="}, {"name": "workAddressCountry", "value": "string="}, {"name": "workAddressState", "value": "string="}, {"name": "workAddressCity", "value": "string="}, {"name": "workAddressStreet", "value": "string="}, {"name": "workAddressPostalCode", "value": "string="}, {"name": "homeFaxNumber", "value": "string="}, {"name": "homePhoneNumber", "value": "string="}, {"name": "homeAddressCountry", "value": "string="}, {"name": "homeAddressState", "value": "string="}, {"name": "homeAddressCity", "value": "string="}, {"name": "homeAddressStreet", "value": "string="}, {"name": "homeAddressPostalCode", "value": "string="}]
* @config: {"swan": {"web": {"invoke": "swan.message.url", "handler": "bridge"}, "jsc": {"invoke": "swan.method.url", "method": "_naSwan.bridge.postMessage"}}}
*/
- (void)setPhoneContact:(BBASchemeDispatcher *)dispatcher;
/**
* 描 述: 获取手机通通讯录
* 示 例: baiduboxapp: //swanAPI/getPhoneContacts?params={"cb":"_bdbox_pjs_329"}&callback=_bdbox_js_330&upgrade=0k
* 文 档: http://ft.baidu.com/#/scheme/swan_getphonecontact
* 备 注:
* ********** description ************
* @name: getPhoneContacts
* @authority: swanAPI
* @path: /getPhoneContacts
* @args: [{"name": "cb", "value": "string"}, {"name": "invokeFrom", "value": "string="}]
* @config: {"swan": {"web": {"invoke": "swan.message.url", "handler": "bridge"}, "jsc": {"invoke": "swan.method.url", "method": "_naSwan.bridge.postMessage"}}}
*/
- (void)getPhoneContacts:(BBASchemeDispatcher *)dispatcher;
/**
* 描 述: 获取是否就有手机通讯录权限
* 示 例: baiduboxapp: //swanAPI/checkPhoneContactsAuthorization?params={"cb":"_bdbox_pjs_329"}&callback=_bdbox_js_330&upgrade=0k
* 文 档: http://ft.baidu.com/#/scheme/swan_checkPhoneContactsAuthorization
* 备 注:
* ********** description ************
* @name: checkPhoneContactsAuthorization
* @authority: swanAPI
* @path: /checkPhoneContactsAuthorization
* @args: [{"name": "cb", "value": "string"}]
* @config: {"swan": {"web": {"invoke": "swan.message.url", "handler": "bridge"}, "jsc": {"invoke": "swan.method.url", "method": "_naSwan.bridge.postMessage"}}}
*/
- (void)checkPhoneContactsAuthorization:(BBASchemeDispatcher *)dispatcher;
@end