GooglePlayServicesClient.ConnectionCallbacks | 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

- - Get Started
  - Style
  - Patterns
  - Building Blocks
  - Downloads
  - Videos
- - Training
  - API Guides
  - Reference
  - Tools
    - Get the SDK
  - Google Services
- - Google Play
  - Publishing
  - Promoting
  - App Quality
  - Spotlight
  - Open Distribution

## Results

Loading...
public static interface

# GooglePlayServicesClient.ConnectionCallbacks

com.google.android.gms.common.GooglePlayServicesClient.ConnectionCallbacks

## Class Overview

Provides callbacks that are called when the client is connected or disconnected from the service. Most applications implement `onConnected()` to start making requests.

## Summary

Public Methods
abstract void | onConnected() After calling `connect()`, this method will be invoked asynchronously when the connect request has successfully completed.
abstract void | onDisconnected() Called when the client is disconnected.

## Public Methods

#### public abstract void onConnected ()

After calling `connect()`, this method will be invoked asynchronously when the connect request has successfully completed. After this callback, the application can make requests on other methods provided by the client and expect that no user intervention is required to call methods that use account and scopes provided to the client constructor.

#### public abstract void onDisconnected ()

Called when the client is disconnected. This can happen if there is a problem with the remote service (e.g. a crash or resource problem causes it to be killed by the system). When called, all requests have been canceled and no outstanding listeners will be executed. Applications should disable UI components that require the service, and wait for a call to `onConnected()` to re-enable them.