Optics and photonics

Which condition is required for total internal reflection at a lens surface?