BBASMPlugin+DeviceVibrate.h 1.34 KB
//
//  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