[英]how to know in android if a user unlocked his device with pin/password/fingerprint/face?
在 android 中,如果用户使用以下任一方法解锁手机,我们可以得到:
您可以在本机和 hrbrid 中使用来自 DeviceAdminReceiver 服务的 onPasswordSucceeded 回调 function。 此 function 在用户更正 PIN 码时触发。
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
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.