doBackground method

  1. @override
Future<V2TimCallback> doBackground({
  1. required int unreadCount,
})
override

Implementation

@override
Future<V2TimCallback> doBackground({
  required int unreadCount,
}) async {
  Map<String, dynamic> param = {
    "ability": Utils.getAbility(),
    "unreadCount": unreadCount,
  };
  var resp = V2TimCallback.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "doBackground",
        buildOfflinePushParam(
          param,
        ),
      ),
    ),
  );
  log("doBackground", param, resp.toLogString());
  return resp;
}