BBASMPlugin+Barcode.h 940 Bytes
//
//  BBASMPlugin+Barcode.h
//  SWAN
//
//  Created by baidu on 2018/5/21.
//  Copyright © 2018 baidu. All rights reserved.
//

#import "BBASMPlugin.h"

#define kBBASDCallBackParamsExecutionErrorStatus     @"203"
#define kBBASDCallBackParamsExecutionErrorMSG        @"处理失败,无返回结果"

@interface BBASMPlugin (Barcode)

/**
 * 描  述: 扫码
 * 示  例: baiduboxapp://swanAPI/scanCode?params=%7B%22cb%22%3A%22_bdbox_pjs_597%22%7D&callback=_bdbox_js_547&upgrade=0
 * 文  档: http://ft.baidu.com/#/scheme/swan_scancode
 * 备  注:
 * ********** description ************
 * @name:      scanCode
 * @authority: swanAPI
 * @path:      /scanCode
 * @args:      [{"name": "cb", "value": "string"}]
 * @config:    {"swan": {"web": {"invoke": "swan.message.url", "handler": "bridge"}, "jsc": {"invoke": "swan.method.url", "method": "_naSwan.bridge.postMessage"}}}
 */
- (void)scanCode:(BBASchemeDispatcher *)dispatcher;

@end