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

GoogleApiClient.OnConnectionFailedListener

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

interface GoogleApiClient.OnConnectionFailedListener


Provides callbacks for scenarios that result in a failed attempt to connect the client to the service. See ConnectionResult for a list of error codes and suggestions for resolution.

Summary

Public functions

Unit

Called when there was an error connecting the client to the service.

Public functions

onConnectionFailed

fun onConnectionFailed(result: ConnectionResult): Unit

Called when there was an error connecting the client to the service.

Parameters
result: ConnectionResult

A ConnectionResult that can be used for resolving the error, and deciding what sort of error occurred. To resolve the error, the resolution must be started from an activity with a non-negative requestCode passed to startResolutionForResult. Applications should implement onActivityResult in their Activity to call connect again if the user has resolved the issue (resultCode is RESULT_OK).