| CLASS info |
| public class ResolvableApiException extends ApiException |
| 需要开发者解决的异常。 |
| Constructor name |
| ResolvableApiException(Status status) 使用status信息构造ResolvableApiException。 |
| Return type | Method name |
| void | startResolutionForResult(Activity activity, int requestCode) throws IntentSender.SendIntentException 根据结果启动解决方案。 |
| constructor |
ResolvableApiException(Status status) |
| 使用status信息构造ResolvableApiException。 |
Parameters
| Parameter name | Parameter desc |
| status | 包含状态码和状态描述信息的Status实例。 |
| Method |
public void startResolutionForResult(Activity activity, int requestCode) throws IntentSender.SendIntentException |
| 根据结果启动解决方案 |
Parameters
| Parameter name | Parameter desc |
| activity | 跳转所需要的activity |
| requestCode | 请求码,用于在收到结果时辨别是否是自己的请求 |
| Throw name | Throw desc |
| IntentSender.SendIntentException | 如果解决方案intent被取消或者不再能够执行请求,则抛出该异常。 |
| Method |
public PendingIntent getResolution() |
| 获取能够解决错误的Pending Intent。 |
Parameters
| Parameter name | Parameter desc |
| activity | 跳转所需要的activity |
| requestCode | 请求码,用于在收到结果时辨别是否是自己的请求 |
| type | desc |
| PendingIntent | 能够解决错误的pending intent,该intent可以通过startResolutionForResult方法展示UI通过与用户交互解决问题。 |