Smart lock option in camera view screens

Is it possible to add smart locking/unlocking ability to the camera view screen? There’s a menu for setting off the alarm and turning on lights so what about adding lock control as well?