A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.google.com/android/reference/com/google/android/gms/common/api/ResultCallback below:

ResultCallback | Google Play services

Stay organized with collections Save and categorize content based on your preferences.

public interface ResultCallback<R extends Result>
Known indirect subclasses

An interface for receiving a Result from a as an asynchronous callback.

See also ResultCallbacks and ResolvingResultCallbacks.

Summary Public methods
abstract void onResult(@NonNull R result)

Called when the Result is ready.

It is the responsibility of the callback to release any resources associated with the result. Some result types may implement Releasable, in which case release should be used to free the associated resources.

This method is called on the main thread, unless overridden by setHandler.

Parameters @NonNull R result

The result from the API call. Never null.

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

Last updated 2024-10-31 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["`ResultCallback` is an interface used for receiving a `Result` object asynchronously from an API call."],["It provides a single method, `onResult`, which is called when the `Result` is ready and should handle any necessary resource management."],["`ResultCallback` has direct and indirect subclasses like `ResultCallbacks` and `ResolvingResultCallbacks` for more specialized implementations."],["The `onResult` method is executed on the main thread, ensuring operations related to the UI can be performed safely."],["Callbacks are responsible for releasing any resources held by the `Result` object, potentially using `Releasable.release()` if applicable."]]],[]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4