The option is as @leledumbo points out - device dependent.
If your device does not support this you need to remove the charger when your threshold has been reached - however this is easily forgotten.
The question has been around for years and the following topic builds upon previous topics from around the net.