How to lock/unlock android devices using unity and c#?

654 Views Asked by At

I looked all over the internet for a solution for a few days but couldn't find one that would help me lock/unlock an android device using unity programmatically. Mostly all the solutions are using android studio. Can some help me out please?

1

There are 1 best solutions below

1
On BEST ANSWER

You need to create library that will help you to use Android's native featues like toast and notifications

https://docs.unity3d.com/Manual/PluginsForAndroid.html

https://docs.unity3d.com/Manual/AndroidAARPlugins.html