GoogleApiClient.OnConnectionFailedListener | Android Developers

Quicknav Quicknav
Links

- Google Play Developer Console
- Android Developers Blog
- About Android

Android Sites

- Android.com
- Android Developers
- Android Open Source Project

Language
close

- - About
  - Wear
  - TV
  - Auto
- - Get Started
  - Devices
  - Style
  - Patterns
  - Building Blocks
  - Downloads
  - Videos
- - Training
  - API Guides
  - Reference
  - Tools
  - Google Services
  - Samples
- - Google Play
  - Essentials
  - Get Users
  - Engage & Retain
  - Monetize
  - Tools & Reference
  - Developer Stories

## Results

Loading...
Summary: Methods | Inherited Methods | [Expand All]
public static interface

# GoogleApiClient.OnConnectionFailedListener

implements GooglePlayServicesClient.OnConnectionFailedListener

com.google.android.gms.common.api.GoogleApiClient.OnConnectionFailedListener

## Class Overview

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 Methods
abstract void | onConnectionFailed(ConnectionResult result) Called when there was an error connecting the client to the service.

[Expand] Inherited Methods
From interface com.google.android.gms.common.GooglePlayServicesClient.OnConnectionFailedListener
abstract void | onConnectionFailed(ConnectionResult result) Called when there was an error connecting the client to the service.

## Public Methods

#### public abstract void onConnectionFailed (ConnectionResult result)

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

##### Parameters

result | 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(Activity, int)`. Applications should implement onActivityResult in their Activity to call `connect()` again if the user has resolved the issue (resultCode is `RESULT_OK`).