{% setvar book_path %}/android/reference/kotlin/_book.yaml{% endsetvar %} {% include "/android/_dackka-meta-tags.html" %}

GooglePlayServicesRepairableException

{% setvar page_path %}com/google/android/gms/common/GooglePlayServicesRepairableException.html{% endsetvar %} {% setvar doc_root_path %}/android/reference{% endsetvar %} {% setvar can_switch %}1{% endsetvar %} {% include "android/_kotlin_switcher2.md" %}

class GooglePlayServicesRepairableException : UserRecoverableException

kotlin.Any
   ↳ kotlin.Throwable
     ↳ java.lang.Exception
       ↳ com.google.android.gms.common.UserRecoverableException
         ↳ com.google.android.gms.common.GooglePlayServicesRepairableException

GooglePlayServicesRepairableExceptions are special instances of s which are thrown when Google Play services is not installed, up-to-date, or enabled. In these cases, client code can use getConnectionStatusCode in conjunction with getErrorDialog to provide users with a localized android.app.Dialog that will allow users to install, update, or otherwise enable Google Play services.

Summary

Public constructors

GooglePlayServicesRepairableException(
    connectionStatusCode: Int,
    msg: String!,
    intent: Intent!
)

Creates a GooglePlayServicesRepairableException.

Public properties

Int

Inherited functions

From java.lang.Throwable

Inherited properties

From com.google.android.gms.common.UserRecoverableException

Public constructors

GooglePlayServicesRepairableException

GooglePlayServicesRepairableException(
    connectionStatusCode: Int,
    msg: String!,
    intent: Intent!
)

Creates a GooglePlayServicesRepairableException.

Parameters
connectionStatusCode: Int

a code for the ConnectionResultstatusCode of the exception

msg: String!

a string message for the exception

intent: Intent!

an intent that may be started to resolve the connection issue with Google Play services

Public properties

connectionStatusCode

val connectionStatusCodeInt