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.
| 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. |
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.
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.
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.