简体   繁体   中英

How can I lock Device not just the App but the whole device in flutter?

I am working on a project which requires a device lock Button that enables users from the app to lock the entire device. Is there a way, package or any Platform plugin that I can use to implement that?

Thanks guys.

It's not possible on non jailbroken device, apple doesn't give any API for that.

I think that's because user have access to hardware button anytime.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM