isPlatformAuth method

Future<JShareResponse> isPlatformAuth({
  1. required JSharePlatform platform,
})

判断是否授权

Implementation

Future<JShareResponse> isPlatformAuth(
    {required JSharePlatform platform}) async {
  print(flutterLog + "isPlatformAuth:");

  Map map = Map();
  map["platform"] = getStringFromEnum(platform);
  Map<dynamic, dynamic>? resultMap =
      await (_channel.invokeMapMethod("isPlatformAuth", map));
  return JShareResponse.fromJson(resultMap);
}