A man who had been at a party when he allegedly left a Dublin apartment building with a young child "under his arm" has been remanded in custody.
The defendant, in his mid-20s, cannot be named after gardaí cited the "sensitivity" of the case "in the current climate" and were granted a reporting restriction order.
The man is accused that without lawful authority or reasonable excuse, he intentionally attempted to take, caused to be taken, detained or caused to be detained a child aged under 16.
He appeared at Dublin District Court on Monday, and the attempted abduction case was held in camera, meaning the public could not attend.
Garda Laura McDermott told Judge Gerard Jones the man's reply to the charge was: "I was not taking the child anywhere. I'm not a person like that. I do not have any intention with a child. I do not have any bad or unwanted intentions with a child."
The judge was given an outline of the evidence and was told the man was attending a party at the building.
CCTV from the building showed him interacting with two children, aged five and ten, and he did not know them.
It was alleged that the child tried to get in the door, the accused opened it, and the child pushed the apartment door.
The court heard he was seen leaving with the "five-year-old under his arm walking away".
Judge Jones heard that the man and the children returned, but the accused could not regain entry to the building.
"It is a very serious matter as far as I am concerned," said Judge Jones, ordering a remand in custody.
The garda asked for reporting restrictions due to the current climate, and the judge acceded, telling journalists in court not to publicise the defendant's name.
Defence solicitor Michael Kelleher said his client was at a party in the building at a party and was intoxicated.
The court heard he was not ready to apply for bail at this stage.
The defendant, who did not address the court, was granted legal aid and remanded in custody to appear at Cloverhill District Court on Wednesday for a bail application.