What specific steps can teachers take to make sure that the e-devices that students inevitably bring to class (laptops, tablets, cell phones) are used to focus on and contribute to learning the subject matter of the course rather than serving as a distraction that inhibits learning?

What specific steps can teachers take to make sure that the e-devices that students inevitably bring to class (laptops, tablets, cell phones) are used to focus on and contribute to learning the subject matter of the course rather than serving as a distraction that inhibits learning?