BBASMPlugin+BackgroundStyle.h 1.64 KB
//
//  BBASMPlugin+BackgroundStyle.h
//  SWAN
//
//  Created by baidu on 2018/12/17.
//

#import "BBASMPlugin.h"

@interface BBASMPlugin (BackgroundStyle)

/**
 * 描  述: 动态设置窗口的背景色
 * 示  例: baiduboxapp://swanAPI/setBackgroundColor?params={"backgroundColor":"#000000","backgroundColorTop":"#322222","backgroundColorBottom":"#233333"}&callback=__jsna_26
 * 文  档: http://ft.baidu.com/#/scheme/swan_setbackgroundcolor
 * 备  注:
 * ********** description ************
 * @name:      setBackgroundColor
 * @authority: swanAPI
 * @path:      /setBackgroundColor
 * @args:      [{"name":"backgroundColor","value":"string="},{"name":"backgroundColorTop","value":"string="},{"name":"backgroundColorBottom","value":"string="}]
 * @config:    {"swan": {"web": {"invoke": "swan.message.url", "handler": "bridge"}, "jsc": {"invoke": "swan.method.url", "method": "_naSwan.bridge.postMessage"}}}
 */
- (void)setBackgroundColor:(BBASchemeDispatcher *)dispatcher;

/**
 * 描  述: 动态设置下拉背景字体、loading 图的样式
 * 示  例: baiduboxapp://swanAPI/setBackgroundTextStyle?params={"textStyle":"light"}&callback=__jsna_36
 * 文  档: http://ft.baidu.com/#/scheme/swan_setbackgroundtextstyle
 * 备  注:
 * ********** description ************
 * @name:      setBackgroundTextStyle
 * @authority: swanAPI
 * @path:      /setBackgroundTextStyle
 * @args:      [{"name": "textStyle", "value": "string"}]
 * @config:    {"swan": {"web": {"invoke": "swan.message.url", "handler": "bridge"}, "jsc": {"invoke": "swan.method.url", "method": "_naSwan.bridge.postMessage"}}}
 */
- (void)setBackgroundTextStyle:(BBASchemeDispatcher *)dispatcher;

@end