ResolvableApiException

class ResolvableApiException : ApiException


Exception to be returned by a Task when a call to Google Play services has failed with a possible resolution.

Summary

Public constructors

Public functions

PendingIntent!

A pending intent to resolve the failure.

Unit
startResolutionForResult(activity: Activity!, requestCode: Int)

Resolves an error by starting any intents requiring user interaction.

Inherited functions

From com.google.android.gms.common.api.ApiException
Status

Returns the status of the operation.

Int

Indicates the status of the operation.

String?

This function is deprecated.

use getMessage for a summary of the cause.

From java.lang.Throwable

Inherited properties

From com.google.android.gms.common.api.ApiException
Status!
@SuppressViolation(value = "hide_members_annotation")
mStatus

This property is deprecated.

use getStatus instead.

Public constructors

ResolvableApiException

ResolvableApiException(status: Status)

Public functions

getResolution

fun getResolution(): PendingIntent!

A pending intent to resolve the failure. This intent can be started with startIntentSenderForResult to present UI to solve the issue.

Returns
PendingIntent!

The pending intent to resolve the failure.

startResolutionForResult

fun startResolutionForResult(activity: Activity!, requestCode: Int): Unit

Resolves an error by starting any intents requiring user interaction. See SIGN_IN_REQUIRED, and RESOLUTION_REQUIRED.

Parameters
activity: Activity!

An Activity context to use to resolve the issue. The activity's onActivityResult method will be invoked after the user is done. If the resultCode is RESULT_OK, the application should try to connect again.

requestCode: Int

The request code to pass to onActivityResult.

Throws
android.content.IntentSender.SendIntentException

If the resolution intent has been canceled or is no longer able to execute the request.