Api

Kotlin|Java

public final classApi<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.

Seecom.google.android.gms.common.api.GoogleApiClient.Builder for usage examples.

Code that references static, finalApi 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 interfaceApi.ApiOptions

Base interface for API options.

An interface forApiOptions that include an account.

An interface forApiOptions that includes aGoogleSignInAccount

Base interface forApiOptions inApis that have options.

ApiOptions implementation forApis that do not take any options.

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

Base interface forApiOptions that are optional.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-10-31 UTC.