Query regarding accessibility of device while driving.

Hi Team, We are planning to develop an app that will control the road accidents and use of mobile devices while driving. To achieve this features, we are planning to restrict the user to pick the call when user will be in drive mode. In this app, there will be these features that will use to control the user interaction in drive mode. 1. Dim the brightness of the device. By this, use will not be distracted at the time of the drive mode. 2. when the user will cross the speed of 10KMph, the device vol will be automatically decreased to a minimum level. We have successfully implemented these features in the app. Could you please confirm if these features will be against of Apple guidelines. Can we publish the app with these features? Basically, this app will detect the user drive mode and user drive mode speed. If the app finds the speed limit greater than the 10 KMph, then the app will automatically decrease the device volume and brightness of the app to the minimum level. Also, We also want to turn on the flight mode when user will cross the speed up to 10Kmph. As well as, we want to completely lock the device by using the device lock or any lock screen, by using that user will no longer able to navigate the device. Could you please suggest us the procedure by which we can achieve these features for our app programmatically? Your feedback and suggestions will really help us to develop the app. Thanks.

Query regarding accessibility of device while driving.
 
 
Q