getNotificationList static method

Future<NIMResult<List<SystemMessage>>> getNotificationList(
  1. int limit, {
  2. int offset = 0,
  3. SystemMessage? systemMessage,
})

查询系统通知

Implementation

static Future<NIMResult<List<SystemMessage>>> getNotificationList(int limit,
    {int offset = 0, SystemMessage? systemMessage}) {
  if (Platform.isAndroid) {
    return NimCore.instance.systemMessageService
        .querySystemMessagesAndroid(offset, limit);
  } else {
    return NimCore.instance.systemMessageService
        .querySystemMessagesIOSAndDesktop(systemMessage, limit);
  }
}