Skip to content

Instantly share code, notes, and snippets.

@hitherejoe
Last active July 6, 2016 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hitherejoe/1e45bb5c1411e2f1196e5050621aa7a9 to your computer and use it in GitHub Desktop.
Save hitherejoe/1e45bb5c1411e2f1196e5050621aa7a9 to your computer and use it in GitHub Desktop.
Awareness.SnapshotApi.getWeather(mGoogleApiClient)
.setResultCallback(new ResultCallback<WeatherResult>() {
@Override
public void onResult(@NonNull WeatherResult weatherResult) {
if (weatherResult.getStatus().isSuccess()) {
Weather weather = weatherResult.getWeather();
// do stuff with Weather object!
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment