BBASMPlugin+History.h 1.53 KB
//
//  BBASMPlugin+History.h
//  SWAN
//
//  Created by baidu on 2018/4/10.
//  Copyright © 2018年 baidu. All rights reserved.
//

#import "BBASMPlugin.h"

@interface BBASMPlugin (History)

/**
 * 描  述: 获取端上保存的小程序打开历史
 * 示  例: baiduboxapp://swanAPI/getHistory?params=\$params&callback=\$callback
 * 文  档: http://ft.baidu.com/#/scheme/swan_gethistory
 * 备  注:
 * ********** description ************
 * @name:      getHistory
 * @authority: swanAPI
 * @path:      /getHistory
 * @args:      [{"name": "cb", "value": "string"}]
 * @config:    {"swan": {"web": {"invoke": "swan.message.url", "handler": "bridge"}, "jsc": {"invoke": "swan.method.url", "method": "_naSwan.bridge.postMessage"}}}
 */
- (void)getHistory:(BBASchemeDispatcher *)dispatcher;

/**
 * 描  述: 删除端上保存的小程序打开历史
 * 示  例: baiduboxapp://swanAPI/deleteHistory?params=\$params&callback=\$callback
 * 文  档: http://ft.baidu.com/#/scheme/swan_deletehistory
 * 备  注:
 * ********** description ************
 * @name:      deleteHistory
 * @authority: swanAPI
 * @path:      /deleteHistory
 * @args:      [{"name": "appid", "value": "string="},{"name": "appKey", "value": "string="},{"name": "type", "value": "string="}, {"name": "version", "value": "number="},{"name": "cb", "value": "string"}]
 * @config:    {"swan": {"web": {"invoke": "swan.message.url", "handler": "bridge"}, "jsc": {"invoke": "swan.method.url", "method": "_naSwan.bridge.postMessage"}}}
 */
- (void)deleteHistory:(BBASchemeDispatcher *)dispatcher;

@end