AI-generated Key Takeaways
-
SearchAuthApi
provides an interface for Google Search authentication, enabling authorization for using the Now API. -
It offers methods to obtain and clear authorization tokens for interacting with Google Now.
-
getGoogleNowAuth
retrieves an authorization code or access token for using the Now API, whileclearToken
removes revoked tokens from the cache. -
Developers need to integrate
SearchAuthApi
with aGoogleApiClient
for utilizing its functionalities.
This interface is deprecated.
Use NodeClient
.
Exposes an API for to learn about local or connected Nodes.
Node events are delivered to all applications on a device.
New code should use the CapabilityApi
which allows you to create and listen to application-specific network events.
Nested Class Summary
interface | NodeApi.GetConnectedNodesResult | This interface is deprecated. See
NodeClient.getConnectedNodes() . |
|
interface | NodeApi.GetLocalNodeResult | This interface is deprecated. See
NodeClient.getLocalNode() .
|
Public Method Summary
abstract PendingResult<NodeApi.GetConnectedNodesResult> |
getConnectedNodes(GoogleApiClient
client)
Gets a list of nodes to which this device is currently connected, either
directly or indirectly via a directly connected node.
|
abstract PendingResult<NodeApi.GetLocalNodeResult> |
Public Methods
public abstract PendingResult<NodeApi.GetConnectedNodesResult> getConnectedNodes (GoogleApiClient client)
Gets a list of nodes to which this device is currently connected, either directly or indirectly via a directly connected node.
The returned list will not include the
local node
.
public abstract PendingResult<NodeApi.GetLocalNodeResult> getLocalNode (GoogleApiClient client)
Gets the Node
that
refers to this device. The information in the returned Node
can be
passed to other devices using the MessageApi
,
for example.