With the On-body detection feature, the Samsung device can remain unlocked while it is being worn. The position sensor detects whether the device is currently being held in the hand or whether it is in a bag. During this time, the device remains unlocked if the wearer recognition feature is activated. As soon as the Samsung device is put down, it detects this and locks itself automatically.

Note: The Samsung device cannot detect who is holding the device, so if it is stolen from the bag, for example, an unauthorized person may have access to the device.

Android 10 (One UI 2.0)
Step 1:  Open the  Settings
Step 2:  Tap on  Lock screen
Step 3:  Tap on  Smart Lock
Step 4:  Enter Lock Screen  PIN / Password / Pattern
Step 5:  Tap on  On-body detection
Step 6:  Enable or disable  On-body detection
Step 7:  Confirm with  Continue
  1. Open the Settings
  2. Tap on Lock screen
  3. Tap on Smart Lock
  4. Enter Lock Screen PIN/Password/Pattern
  5. Tap on On-body detection
  6. Enable or disable On-body detection
  7. Confirm with Continue

Samsung Instructions