In android can we get if the user unlocked his phone with either of below method:
- PIN
- Password
- FingerPrint
- FaceID
In android can we get if the user unlocked his phone with either of below method:
You can use onPasswordSucceeded
callback function from DeviceAdminReceiver
services in native and hbrid both. This function triggers when user correct PIN code.
public class MyDeviceAdminReceiver extends DeviceAdminReceiver {
@Override
public void onPasswordSucceeded(@NonNull Context context, @NonNull Intent intent, @NonNull UserHandle user) {
super.onPasswordSucceeded(context, intent, user); // Your Code here
}
}