INNER CODE UNIT · Dart
cancel
rhymelph/r_upgrade · lib/r_upgrade.dart:138
static Future<bool?> cancel(int id) {
assert(Platform.isAndroid, 'This method only support android application');
return _methodChannel!.invokeMethod('cancel', {
'id': id,
});
}
/// Android
///
/// Install your apk by [id].
///
static Future<bool?> install(
int id, {
RUpgradeInstallType installType = RUpgradeInstallType.normal,
}) async {
assert(Platform.isAndroid, 'This method only support android application');
return await _methodChannel!.invokeMethod("install", {
'id': id,