Add some APIs.

This commit is contained in:
Brett
2023-10-19 19:08:54 +08:00
parent 4fef487562
commit ceba9e827f
10 changed files with 96 additions and 70 deletions

View File

@@ -777,6 +777,17 @@ class MessageManager {
}));
}
Future setAppBadge(int count, {
String? operationID,
}) {
return _channel.invokeMethod(
'setAppBadge',
_buildParam({
'count': count,
'operationID': Utils.checkOperationID(operationID),
}));
}
static Map _buildParam(Map param) {
param["ManagerName"] = "messageManager";
return param;