AppInteractionDeniedException
open class AppInteractionDeniedException : AppInteractionException
| kotlin.Any | ||||
| ↳ | kotlin.Throwable | |||
| ↳ | java.lang.Exception | |||
| ↳ | android.app.AppInteractionException | |||
| ↳ | android.app.AppInteractionDeniedException | |||
Exception thrown when an app interaction is denied.
Summary
| Constants | |
|---|---|
| static Int |
Auto denied the interaction. |
| static Int |
Unknown reason for denied. |
| static Int |
User denied the interaction. |
| Public constructors | |
|---|---|
AppInteractionDeniedException(message: String?, reason: Int)Constructor for |
|
AppInteractionDeniedException(message: String?, reason: Int, extras: Bundle)Constructor for |
|
| Public methods | |
|---|---|
| open Int |
Returns the reason for interaction denied. |
| Inherited functions | |
|---|---|
Constants
REASON_AUTO_DENIED
static val REASON_AUTO_DENIED: Int
Auto denied the interaction.
This means that the user was not shown a dialog and the interaction was denied by the system automatically. This could happen because the user has previously denied the interaction already.
Value: 2REASON_UNKNOWN
static val REASON_UNKNOWN: Int
Unknown reason for denied.
Value: 0REASON_USER_DENIED
static val REASON_USER_DENIED: Int
User denied the interaction.
This means that the user was shown a dialog and explicitly denied the access.
Value: 1Public constructors
AppInteractionDeniedException
AppInteractionDeniedException(
message: String?,
reason: Int)
Constructor for AppInteractionDeniedException.
| Parameters | |
|---|---|
message |
String?: The error message. This value may be null. |
reason |
Int: The reason for interaction denied. Value is one of the following: |
AppInteractionDeniedException
AppInteractionDeniedException(
message: String?,
reason: Int,
extras: Bundle)
Constructor for AppInteractionDeniedException.
| Parameters | |
|---|---|
message |
String?: The error message. This value may be null. |
reason |
Int: The reason for interaction denied. Value is one of the following: |
extras |
Bundle: Additional metadata. This value cannot be null. |
Public methods
getReason
open fun getReason(): Int
Returns the reason for interaction denied.
| Return | |
|---|---|
Int |
The reason for interaction denied. Value is one of the following: |