What do opt-in and opt-out mean

Illustration of a man sitting on a couch and looking at his phone with a smile, along with three colorful geometric shapes: a large red circle with a smiling face, a purple circle, and yellow circles with horizontal lines.