A Dublin bus passenger spat in the direction of other people on board before shouting at gardai: "I have Covid-19 and you will f**king get it," it has been alleged.
Tariq Jagoe (32) is also accused of attempting to kick out at gardai 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, Killiney, is charged with garda obstruction and violent behaviour, on March 28.
Judge John Cheatle remanded him in custody, to appear in court again next week.
A garda sergeant told Dublin District Court the prosecuting gardai would not grant station bail to the accused due to the nature of the allegations.
It was alleged gardai were called to Lord Edward Street, where a man was spitting in the direction of "numerous passengers on a Dublin bus".
The investigating garda saw the accused in a highly intoxicated state, acting in a physically aggressive manner to members of the public.
When approached by the gardai, he allegedly continued to be highly aggressive and shouted: "F**k you, you shower of c**ts and horrible pricks."
When told to desist, it was alleged he shouted: "I have Covid-19 and you will f**king get it," while numerous members of the public were present, the garda sergeant continued.
As he was restrained, it was alleged he made numerous attempts to spit and kick out at gardai and he continued to be violent when he was placed in a cell at Pearse Street Garda Station.
The accused's lawyer said Mr Jagoe would say there were no passengers on the top deck of the bus other than him and a friend.
It was accepted they were taking drugs, "which they shouldn't have been", and the gardai were called in that context, the accused's lawyer said.
He said he was instructed the accused was wearing a protective mask at the time and told by the officers to remove it.
The garda sergeant said this was not in the summary of alleged evidence before her.
Mr Jagoe's lawyer said this would be a "serious omission."
He also said the accused had injuries to his face and arms which he said occurred in the course of his arrest.
The court heard the accused was on disability payments for mental health issues.
Judge Cheatle remanded the accused in custody, to appear in Cloverhill District Court on April 6, and he should receive any necessary medical attention, including a mental health assessment.