Florida Statute 776.032
This statutory enactment created what is known as criminal prosecution immunity. And stated that a person who lawfully defended themselves is immune from prosecution from arrest, detention, or prosecution.
As the procedure for making the determination of whether a person was immune from criminal prosecution was not defined by the legislature, the Florida Supreme Court cleared up the issue in Dennis v. State, 51 So. 3d 456 (Fla. 2010) and ruled:
A defendant may raise the question of statutory immunity [from criminal prosecution prior to trial] and, when such a claim is raised, the trial court must determine whether the defendant has shown by a preponderance of the evidence that the immunity attaches.
The result of this statute and the Florida Supreme Courts ruling is that a defendant can now raise self defense at two stages in the criminal prosecution.
First, a defendant can file a motion to dismiss asking the court to find that they are entitled to dismissal by using the procedure outlined in by the Florida Supreme Court. If the court denies the motion, the defendant is still allowed to raise the issue with the jury.