OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 package org.chromium.chrome.browser.gcore; |
| 6 |
| 7 /** |
| 8 * Client used to communicate with GmsCore using Google API. Meant to be |
| 9 * used in a synchronous way with {@link ConnectedTask}. |
| 10 */ |
| 11 public interface ChromeGoogleApiClient { |
| 12 /** |
| 13 * Connects the GMS Core client. |
| 14 * Does nothing if the client is already connected. |
| 15 * @param timeoutMillis after which connection is considered unsuccessful |
| 16 * @return whether connection was successful |
| 17 */ |
| 18 boolean connectWithTimeout(long timeoutMillis); |
| 19 |
| 20 /** |
| 21 * Disconnects client. |
| 22 * Can be safely called on disconnected clients. It will then just clear the
queued calls |
| 23 * submitted since the last disconnection. |
| 24 */ |
| 25 void disconnect(); |
| 26 |
| 27 /** |
| 28 * Checks if Google Play Services are available. |
| 29 */ |
| 30 boolean isGooglePlayServicesAvailable(); |
| 31 } |
OLD | NEW |