DeviceSuggestionsClient

public interface DeviceSuggestionsClient implements HasApiKey<Api.ApiOptions.NoOptions>

A client for the DeviceSuggestions API.

Public Method Summary

abstract Task<Void>
clearClientData()
Clears all data for current app from the device suggestions intent engine.
abstract Task<Void>
registerCallback(DeviceSuggestionsCallback callback)
Registers the callback to be notified when a device suggestion becomes available.
abstract Task<Void>
requestDeviceSuggestions()
Request device suggestion from the intent engine.
abstract Task<Boolean>

Public Methods

public abstract Task<Void> clearClientData ()

Clears all data for current app from the device suggestions intent engine.

This API is available on Android SDK 34 and above.

public abstract Task<Void> registerCallback (DeviceSuggestionsCallback callback)

Registers the callback to be notified when a device suggestion becomes available.

This API is available on Android SDK 34 and above.

public abstract Task<Void> requestDeviceSuggestions ()

Request device suggestion from the intent engine. Set callback via registerCallback(DeviceSuggestionsCallback) before calling this API to be notified of suggested device.

This API is available on Android SDK 34 and above.

public abstract Task<Boolean> unregisterCallback (DeviceSuggestionsCallback callback)

Unregisters the DeviceSuggestionsCallback.

This API is available on Android SDK 34 and above.