yCheckUpdate function

void yCheckUpdate({
  1. required int newVersion,
  2. required String updateContent,
  3. required String? apkDownloadPath,
  4. required String? androidAppId,
  5. required String? iOSAppId,
  6. bool enableIgnore = false,
  7. dynamic onNewest()?,
})

检测更新

Implementation

void yCheckUpdate({
  required int newVersion,
  required String updateContent,
  required String? apkDownloadPath,
  required String? androidAppId,
  required String? iOSAppId,
  bool enableIgnore = false,
  Function()? onNewest,
}) {
  _getPlugin()!.checkUpdate(newVersion: newVersion, updateContent: updateContent, apkDownloadPath: apkDownloadPath, androidAppId: androidAppId, iOSAppId: iOSAppId, enableIgnore: enableIgnore, onNewest: onNewest);
}