Check if Trusted Device is Enrolled
There are 3 methods that you can use to check about Trusted Device enrollment:
  1. 1.
    Check if this device is a Trusted Device
  2. 2.
    Check if this account has any Trusted Device
  3. 3.
    Check if Trusted Device is the default method of authentication for this account

Check if this device is a Trusted Device

1
Cotter.methods.trustedDeviceEnrolled(new CotterMethodChecker() {
2
@Override
3
public void onCheck(boolean enrolled) {
4
thisDeviceEnrolled.setText("TrustedDevice enrolled this device: " + enrolled);
5
}
6
});
Copied!

Check if this account has any Trusted Device

1
Cotter.methods.trustedDeviceEnrolledAny(new CotterMethodChecker() {
2
@Override
3
public void onCheck(boolean enrolled) {
4
anyDeviceEnrolled.setText("TrustedDevice enrolled any device: " + enrolled);
5
}
6
});
Copied!

Check if Trusted Device is the default method

1
Cotter.methods.trustedDeviceDefault(new CotterMethodChecker() {
2
@Override
3
public void onCheck(boolean defaultMethod) {
4
trustedDeviceDefault.setText("TrustedDevice default: " + defaultMethod);
5
}
6
});
Copied!
Last modified 1yr ago