init static method

Future<Map<Object?, Object?>> init(
  1. String appKey,
  2. String secretKey,
  3. int region, [
  4. String regionExt = "",
])

初始化

Implementation

static Future<Map<Object?, Object?>> init(String appKey, String secretKey, int region,
  [String regionExt = ""]) async {
  // init sdk
  Map<Object?, Object?> ret = await _channel.invokeMethod('init', {
    "appKey": appKey,
    "secretKey": secretKey,
    "region": region,
    "regionExt": regionExt
  });

  // addEventChannelHandler
  _addEventChannelHandler();
  return ret;
}