Quicknav Quicknav
Links

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

Android Sites

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

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...
Summary: Nested Classes | Methods | Inherited Methods | [Expand All]
public class

# PlusClient

extends Object
implements GooglePlayServicesClient

java.lang.Object
↳ | com.google.android.gms.plus.PlusClient

This class is deprecated.
See `GoogleApiClient`.

## Summary

Nested Classes
class | PlusClient.Builder | This class is deprecated. See `GoogleApiClient.Builder`.
interface | PlusClient.OnAccessRevokedListener | This interface is deprecated. See `ERROR(/Auth.OnAccessRevokedCallback)`.
interface | PlusClient.OnMomentsLoadedListener | This interface is deprecated. See `Moments.LoadMomentsResult`.
interface | PlusClient.OnPeopleLoadedListener | This interface is deprecated. See `People.LoadPeopleResult`.
interface | PlusClient.OrderBy | This interface is deprecated. See `People.OrderBy`.

Public Methods
void | clearDefaultAccount() This method is deprecated. See `ERROR(/Auth#clearDefaultAccount)`.
void | connect() This method is deprecated. See `connect()`.
void | disconnect() This method is deprecated. See `disconnect()`.
String | getAccountName() This method is deprecated. See `ERROR(/Auth#getAccountName)`.
Person | getCurrentPerson() This method is deprecated. See `getCurrentPerson(GoogleApiClient)`.
boolean | isConnected() This method is deprecated. See `isConnected()`.
boolean | isConnecting() This method is deprecated. See `isConnecting()`.
boolean | isConnectionCallbacksRegistered(GooglePlayServicesClient.ConnectionCallbacks listener) This method is deprecated. See `isConnectionCallbacksRegistered(GoogleApiClient.ConnectionCallbacks)`.
boolean | isConnectionFailedListenerRegistered(GooglePlayServicesClient.OnConnectionFailedListener listener) This method is deprecated. See `isConnectionFailedListenerRegistered(GoogleApiClient.OnConnectionFailedListener)`.
void | loadMoments(PlusClient.OnMomentsLoadedListener listener, int maxResults, String pageToken, Uri targetUrl, String type, String userId) This method is deprecated. See `load(GoogleApiClient)`.
void | loadMoments(PlusClient.OnMomentsLoadedListener listener) This method is deprecated. See `load(GoogleApiClient)`.
void | loadPeople(PlusClient.OnPeopleLoadedListener listener, Collection<String> personIds) This method is deprecated. See `load(GoogleApiClient, String...)`.
void | loadPeople(PlusClient.OnPeopleLoadedListener listener, String... personIds) This method is deprecated. See `load(GoogleApiClient, String...)`.
void | loadVisiblePeople(PlusClient.OnPeopleLoadedListener listener, String pageToken) This method is deprecated. See `loadVisible(GoogleApiClient, int, String)`.
void | loadVisiblePeople(PlusClient.OnPeopleLoadedListener listener, int orderBy, String pageToken) This method is deprecated. See `loadVisible(GoogleApiClient, int, String)`.
void | registerConnectionCallbacks(GooglePlayServicesClient.ConnectionCallbacks listener) This method is deprecated. See `registerConnectionCallbacks(GoogleApiClient.ConnectionCallbacks)`.
void | registerConnectionFailedListener(GooglePlayServicesClient.OnConnectionFailedListener listener) This method is deprecated. See `registerConnectionFailedListener(GoogleApiClient.OnConnectionFailedListener)`.
void | removeMoment(String momentId) This method is deprecated. See `remove(GoogleApiClient, String)`.
void | revokeAccessAndDisconnect(PlusClient.OnAccessRevokedListener listener) This method is deprecated. See `ERROR(/Auth#revokeAccessAndDisconnect)`.
void | unregisterConnectionCallbacks(GooglePlayServicesClient.ConnectionCallbacks listener) This method is deprecated. See `unregisterConnectionCallbacks(GoogleApiClient.ConnectionCallbacks)`.
void | unregisterConnectionFailedListener(GooglePlayServicesClient.OnConnectionFailedListener listener) This method is deprecated. See `unregisterConnectionFailedListener(GoogleApiClient.OnConnectionFailedListener)`.
void | writeMoment(Moment moment) This method is deprecated. See `write(GoogleApiClient, Moment)`.

[Expand] Inherited Methods

From class java.lang.Object

Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)

From interface com.google.android.gms.common.GooglePlayServicesClient

abstract void | connect() Connects the client to Google Play services.
abstract void | disconnect() Closes the connection to Google Play services.
abstract boolean | isConnected() Checks if the client is currently connected to the service, so that requests to other methods will succeed.
abstract boolean | isConnecting() Checks if the client is attempting to connect to the service.
abstract boolean | isConnectionCallbacksRegistered(GooglePlayServicesClient.ConnectionCallbacks listener) Returns true if the specified listener is currently registered to receive connection events.
abstract boolean | isConnectionFailedListenerRegistered(GooglePlayServicesClient.OnConnectionFailedListener listener) Returns true if the specified listener is currently registered to receive connection failed events.
abstract void | registerConnectionCallbacks(GooglePlayServicesClient.ConnectionCallbacks listener) Registers a listener to receive connection events from this `GooglePlayServicesClient`.
abstract void | registerConnectionFailedListener(GooglePlayServicesClient.OnConnectionFailedListener listener) Registers a listener to receive connection failed events from this `GooglePlayServicesClient`.
abstract void | unregisterConnectionCallbacks(GooglePlayServicesClient.ConnectionCallbacks listener) Removes a connection listener from this `GooglePlayServicesClient`.
abstract void | unregisterConnectionFailedListener(GooglePlayServicesClient.OnConnectionFailedListener listener) Removes a connection failed listener from the `GooglePlayServicesClient`.

## Public Methods

#### public void clearDefaultAccount ()

This method is deprecated.
See `ERROR(/Auth#clearDefaultAccount)`.

#### public void connect ()

This method is deprecated.
See `connect()`.

Connects the client to Google Play services. This method returns immediately, and connects to the service in the background. If the connection is successful, `onConnected(Bundle)` is called. On a failure, `onConnectionFailed(ConnectionResult)` is called.

#### public void disconnect ()

This method is deprecated.
See `disconnect()`.

Closes the connection to Google Play services. No calls can be made on this object after calling this method.

#### public String getAccountName ()

This method is deprecated.
See `ERROR(/Auth#getAccountName)`.

#### public Person getCurrentPerson ()

This method is deprecated.
See `getCurrentPerson(GoogleApiClient)`.

#### public boolean isConnected ()

This method is deprecated.
See `isConnected()`.

Checks if the client is currently connected to the service, so that requests to other methods will succeed. Applications should guard client actions caused by the user with a call to this method.

##### Returns

- true if the client is connected to the service.

#### public boolean isConnecting ()

This method is deprecated.
See `isConnecting()`.

Checks if the client is attempting to connect to the service.

##### Returns

- true if the client is attempting to connect to the service.

#### public boolean isConnectionCallbacksRegistered (GooglePlayServicesClient.ConnectionCallbacks listener)

This method is deprecated.
See `isConnectionCallbacksRegistered(GoogleApiClient.ConnectionCallbacks)`.

Returns true if the specified listener is currently registered to receive connection events.

##### Parameters

listener | The listener to check for.

##### Returns

- true if the specified listener is currently registered to receive connection events.

#### public boolean isConnectionFailedListenerRegistered (GooglePlayServicesClient.OnConnectionFailedListener listener)

This method is deprecated.
See `isConnectionFailedListenerRegistered(GoogleApiClient.OnConnectionFailedListener)`.

Returns true if the specified listener is currently registered to receive connection failed events.

##### Parameters

listener | The listener to check for.

##### Returns

- true if the specified listener is currently registered to receive connection failed events.

#### public void loadMoments (PlusClient.OnMomentsLoadedListener listener, int maxResults, String pageToken, Uri targetUrl, String type, String userId)

This method is deprecated.
See `load(GoogleApiClient)`.

#### public void loadMoments (PlusClient.OnMomentsLoadedListener listener)

This method is deprecated.
See `load(GoogleApiClient)`.

#### public void loadPeople (PlusClient.OnPeopleLoadedListener listener, Collection<String> personIds)

This method is deprecated.
See `load(GoogleApiClient, String...)`.

#### public void loadPeople (PlusClient.OnPeopleLoadedListener listener, String... personIds)

This method is deprecated.
See `load(GoogleApiClient, String...)`.

#### public void loadVisiblePeople (PlusClient.OnPeopleLoadedListener listener, String pageToken)

This method is deprecated.
See `loadVisible(GoogleApiClient, int, String)`.

#### public void loadVisiblePeople (PlusClient.OnPeopleLoadedListener listener, int orderBy, String pageToken)

This method is deprecated.
See `loadVisible(GoogleApiClient, int, String)`.

#### public void registerConnectionCallbacks (GooglePlayServicesClient.ConnectionCallbacks listener)

This method is deprecated.
See `registerConnectionCallbacks(GoogleApiClient.ConnectionCallbacks)`.

Registers a listener to receive connection events from this `GooglePlayServicesClient`. If the service is already connected, the listener's `onConnected(Bundle)` method will be called immediately. Applications should balance calls to this method with calls to `unregisterConnectionCallbacks(ConnectionCallbacks)` to avoid leaking resources.

If the specified listener is already registered to receive connection events, this method will not add a duplicate entry for the same listener, but will still call the listener's `onConnected(Bundle)` method if currently connected.

Note that the order of messages received here may not be stable, so clients should not rely on the order that multiple listeners receive events in.

##### Parameters

listener | the listener where the results of the asynchronous `connect()` call are delivered.

#### public void registerConnectionFailedListener (GooglePlayServicesClient.OnConnectionFailedListener listener)

This method is deprecated.
See `registerConnectionFailedListener(GoogleApiClient.OnConnectionFailedListener)`.

Registers a listener to receive connection failed events from this `GooglePlayServicesClient`. Unlike `registerConnectionCallbacks(GooglePlayServicesClient.ConnectionCallbacks)`, if the service is not already connected, the listener's `onConnectionFailed(ConnectionResult)` method will not be called immediately. Applications should balance calls to this method with calls to `unregisterConnectionFailedListener(OnConnectionFailedListener)` to avoid leaking resources.

If the specified listener is already registered to receive connection failed events, this method will not add a duplicate entry for the same listener.

Note that the order of messages received here may not be stable, so clients should not rely on the order that multiple listeners receive events in.

##### Parameters

listener | the listener where the results of the asynchronous `connect()` call are delivered.

#### public void removeMoment (String momentId)

This method is deprecated.
See `remove(GoogleApiClient, String)`.

#### public void revokeAccessAndDisconnect (PlusClient.OnAccessRevokedListener listener)

This method is deprecated.
See `ERROR(/Auth#revokeAccessAndDisconnect)`.

#### public void unregisterConnectionCallbacks (GooglePlayServicesClient.ConnectionCallbacks listener)

This method is deprecated.
See `unregisterConnectionCallbacks(GoogleApiClient.ConnectionCallbacks)`.

Removes a connection listener from this `GooglePlayServicesClient`. Note that removing a listener does not generate any callbacks.

If the specified listener is not currently registered to receive connection events, this method will have no effect.

##### Parameters

listener | the listener to unregister.

#### public void unregisterConnectionFailedListener (GooglePlayServicesClient.OnConnectionFailedListener listener)

This method is deprecated.
See `unregisterConnectionFailedListener(GoogleApiClient.OnConnectionFailedListener)`.

Removes a connection failed listener from the `GooglePlayServicesClient`. Note that removing a listener does not generate any callbacks.

If the specified listener is not currently registered to receive connection failed events, this method will have no effect.

##### Parameters

listener | the listener to unregister.

#### public void writeMoment (Moment moment)

This method is deprecated.
See `write(GoogleApiClient, Moment)`.