Api

public final class Api<O extends Api.ApiOptions>


Describes a section of the Google Play Services API that should be made available. Instances of this should be passed into addApi to enable the appropriate parts of Google Play Services.

See com.google.android.gms.common.api.GoogleApiClient.Builder for usage examples.

Code that references static, final Api instances for calling Google Play services APIs should generally be migrated to use the equivalent client which subclasses or interfaces that implement .

Parameters
<O extends Api.ApiOptions>

Type of corresponding options class.

Summary

Nested types

public interface Api.ApiOptions

Base interface for API options.

An interface for ApiOptions that include an account.

An interface for ApiOptions that includes a GoogleSignInAccount

public interface Api.ApiOptions.HasOptions extends Api.ApiOptions

Base interface for ApiOptions in Apis that have options.

ApiOptions implementation for Apis that do not take any options.

Base interface for ApiOptions that are not required, don't exist.

Base interface for ApiOptions that are optional.