doBackground method

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

Implementation

@override
Future<V2TimCallback> doBackground({
  required int unreadCount,
}) async {
  return V2TimCallback.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "doBackground",
        buildOfflinePushParam(
          {
            "ability": Utils.getAbility(),
            "unreadCount": unreadCount,
          },
        ),
      ),
    ),
  );
}