checkCanInstallApp method

Future<bool> checkCanInstallApp([
  1. bool openSetting = true
])

检测是否允许安装apk only supports Android

Implementation

Future<bool> checkCanInstallApp([bool openSetting = true]) async {
  if (!isAndroid) return false;
  final bool? state = await Internal.curiosityChannel
      .invokeMethod<bool?>('checkCanInstallApp', openSetting);
  return state ?? false;
}