deleteNotificationChannel method

  1. @override
Future<bool> deleteNotificationChannel(
  1. String channelId
)
override

删除通知渠道

Implementation

@override
Future<bool> deleteNotificationChannel(String channelId) async {
  try {
    final result = await methodChannel.invokeMethod<bool>('deleteNotificationChannel', {
      'channelId': channelId,
    });
    return result ?? false;
  } catch (e) {
    debugPrint('HuaweiPush deleteNotificationChannel error: $e');
    return false;
  }
}