In a criminal case, a pretrial court hearing at which the defendant is informed of the charges against him or her, is appointed counsel if necessary, is required to plead to the charges, and is granted bail if appropriate.