Response

Kotlin|Java

public classResponse<T extends Result>


Represents the successful result of invoking an API method in Google Play services using a subclass of GoogleApi. Wraps a instance of aResult.

Parameters
<T extends Result>

the subclass ofResult being wrapped,

Summary

Protected fields

T

Public constructors

Protected constructors

Response(@NonNull T result)

Public methods

void
setResult(@NonNull T result)

Protected methods

@NonNull T

Protected fields

result

protected T result

Public constructors

Response

public Response()

Protected constructors

Response

protected Response(@NonNull T result)

Public methods

setResult

public void setResult(@NonNull T result)

Protected methods

getResult

protected @NonNullgetResult()

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.