setNotificationInGroup method

  1. @override
Future<Map> setNotificationInGroup(
  1. bool inGroup
)
override

设置通知分组展示,只支持 Android

Implementation

@override
Future<Map<dynamic, dynamic>> setNotificationInGroup(bool inGroup) async {
  if (!Platform.isAndroid) {
    return {
      'code': kAliyunPushOnlyAndroid,
      'errorMsg': 'Only support Android',
    };
  }

  Map<dynamic, dynamic> result = await methodChannel
      .invokeMethod('setNotificationInGroup', {'inGroup': inGroup});
  return result;
}