flutter-moum / flutter_hardware_buttons

Flutter plugin for detecting all hardware buttons
MIT License
37 stars 46 forks source link

Detect lock button other way. #34

Open songyiYu opened 4 years ago

songyiYu commented 4 years ago

I think it should be better to detect lock screen than lock button. (because of appstore reject issue) Please review this method.

func applicationProtectedDataDidBecomeAvailable(_ application: UIApplication) {
        print("applicationProtectedDataDidBecomeAvailable")
    }

    func applicationProtectedDataWillBecomeUnavailable(_ application: UIApplication) {
        print("applicationProtectedDataWillBecomeUnavailable")
    }