SmsCodeAutofillClient.PermissionState

public static abstract @interface SmsCodeAutofillClient.PermissionState implements Annotation

Permission states for the current user-designated autofill service. The initial state is NONE upon the first time using the SMS Code Autofill API. This permission can be granted or denied through a consent dialog requested by the current autofill service, or an explicit change by users within the SMS verification codes settings.

Constant Summary

int DENIED Indicates that the current autofill service has been denied permission by the user.
int GRANTED Indicates that the current autofill service has been granted permission by the user.
int NONE Indicates that the current autofill service has not been granted or denied permission by the user.

Inherited Method Summary

Constants

public static final int DENIED

Indicates that the current autofill service has been denied permission by the user. Calling startSmsCodeRetriever() will fail with USER_PERMISSION_REQUIRED. It can only be resolved by the user explicitly turning on the permission in settings.

Constant Value: 2

public static final int GRANTED

Indicates that the current autofill service has been granted permission by the user. The user consent is not required for calling startSmsCodeRetriever() in this state.

Constant Value: 1

public static final int NONE

Indicates that the current autofill service has not been granted or denied permission by the user. Calling startSmsCodeRetriever() will fail with RESOLUTION_REQUIRED. The caller can use startResolutionForResult(Activity, int) to show a consent dialog for requesting permission from the user.

Constant Value: 0