App pinning keeps one app on screen, so a child or friend can't open your messages or photos.
1. Turn it on: Settings, then Security and privacy, then More security settings, then App pinning (or Pin app / Pin windows).
2. Turn on "Ask for PIN before unpinning".
3. Open the app you want to share, then open Recent apps, tap the app's icon at the top, and tap Pin.
4. To unpin: hold Back and Overview (or swipe up and hold with gesture navigation), then enter your PIN.