A Dublin bus passenger spat in the direction of other people on board before shouting at gardaí, "I have Covid-19 and you will f**king get it," it has been alleged.
Tariq Jagoe (32) is also accused of trying to kick out at gardaí after he was arrested for becoming aggressive on the top deck of a bus in the city centre.
A judge recommended he should be tested for Covid-19 and refused to grant him bail, saying he could not "take the risk" of releasing him because of the coronavirus crisis.
Mr Jagoe, of Tanglewood, Military Road in Killiney, is charged with Garda obstruction and violent behaviour, on March 28.
Judge John Cheatle remanded him in custody to appear in court next week.
Dublin District Court heard gardaí were called to Lord Edward Street, where it was alleged a man was spitting in the direction of "numerous passengers on a Dublin bus".
The accused was highly intoxicated and physically aggressive to members of the public, a garda said.
He allegedly continued to be highly aggressive to gardaí and shouted: "F**k you, you shower of c**ts and horrible pricks."
It was alleged he shouted "I have Covid-19 and you will f**king get it," while numerous members of the public were present.
As he was restrained, it was alleged he tried to spit and kick out at gardaí and he continued to be violent at Pearse Street garda station.
Mr Jagoe maintained there were no passengers on the top deck other than him and a friend.
The accused was wearing a protective mask at the time and he was told by gardaí to remove it, his lawyer said.
Judge Cheatle said the accused was presumed innocent but in light of the current crisis he could not take the risk of releasing him on bail.
He ordered disclosure of CCTV footage and remanded Mr Jagoe in custody, to appear at Cloverhill District Court on April 6.
The judge said the accused should receive any necessary medical attention.
This included a mental health assessment and Covid-19 test, after hearing he had not been tested.