BBASMPlugin+DeviceVibrate.h
1.34 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
//
// BBASMPlugin+SystemSound.h
// SWAN
//
// Created by baidu on 2018/3/15.
// Copyright © 2018年 baidu. All rights reserved.
//
#import "BBASMPlugin.h"
// 播放系统声音
@interface BBASMPlugin (SystemSound)
/**
* 描 述: 手机微振动
* 示 例: baiduboxapp://swanAPI/vibrateShort?callback=_bdbox_js_886&upgrade=0
* 文 档: http://ft.baidu.com/#/scheme/swan_vibrateshort
* 备 注: 目前只有iOS有
* ********** description ************
* @name: vibrateShort
* @authority: swanAPI
* @path: /vibrateShort
* @args: []
* @config: {"swan": {"web": {"invoke": "swan.message.url", "handler": "bridge"}, "jsc": {"invoke": "swan.method.url", "method": "_naSwan.bridge.postMessage"}}}
*/
- (void)vibrateShort:(BBASchemeDispatcher *)dispatcher;
/**
* 描 述: 使手机发生较长时间的振动(400ms)
* 示 例: baiduboxapp://swanAPI/vibrateLong?callback=_bdbox_js_1028&upgrade=0
* 文 档: http://ft.baidu.com/#/scheme/swan_vibratelong
* 备 注:
* ********** description ************
* @name: vibrateLong
* @authority: swanAPI
* @path: /vibrateLong
* @args: []
* @config: {"swan": {"web": {"invoke": "swan.message.url", "handler": "bridge"}, "jsc": {"invoke": "swan.method.url", "method": "_naSwan.bridge.postMessage"}}}
*/
- (void)vibrateLong:(BBASchemeDispatcher *)dispatcher;
@end