setAppKeySecret method

void setAppKeySecret (
  1. {@required String appKey,
  2. @required String appSecret}
)

设置appKey等参数,可以覆盖register中的appkey设置

appKey 在开发者网站上注册时生成的key

appSecret 与AppSecret相对应

Implementation

static void setAppKeySecret({
  @required String appKey,
  @required String appSecret,
}) {
  _channel.invokeMethod("setAppKeySecret", {
    "appKey": appKey,
    "appSecret": appSecret,
  });
}