public static class BleSetupHelper.Result
extends java.lang.Object
BleSetupHelper.ResultListener
when the enabler finishesConstructor and Description |
---|
Result() |
Modifier and Type | Method and Description |
---|---|
java.util.List<BleSetupHelper.PermissionInstance> |
getEnabledPermissions()
Returns a list of permissions that were successfully enabled
|
BleSetupHelper.ErrorCode |
getErrorCode()
If
getSuccessful() returned false, this will contain an error code indicating the reason. |
java.lang.String |
getErrorMessage()
If
getSuccessful() returned false, this will contain an error message describing the reason. |
java.util.List<BleSetupHelper.PermissionInstance> |
getSkippedPermissions()
Returns a list of permissions that were not successfully enabled, but needed to be
|
boolean |
getSuccessful()
If true, the enabler was able to obtain all of the required permissions.
|
public boolean getSuccessful()
getEnabledPermissions()
and getSkippedPermissions()
to determine the status of each
individual permission. You can also use getErrorMessage()
getErrorCode()
to get
more information about errors in the event that the enabler wasn't successful.public java.util.List<BleSetupHelper.PermissionInstance> getEnabledPermissions()
public java.util.List<BleSetupHelper.PermissionInstance> getSkippedPermissions()
public BleSetupHelper.ErrorCode getErrorCode()
getSuccessful()
returned false, this will contain an error code indicating the reason. It will be null
in the event that the enabler was successfulpublic java.lang.String getErrorMessage()
getSuccessful()
returned false, this will contain an error message describing the reason. It will be null
in the event that the enabler was successful