Entry point to the Device Suggestions API.
Public Method Summary
| static DeviceSuggestionsClient |
getClient(Activity
activity)
Creates a new instance of
DeviceSuggestionsClient for use in an Activity.
|
| static DeviceSuggestionsClient |
getClient(Context
context)
Creates a new instance of
DeviceSuggestionsClient for use in a non-Activity Context.
|
Inherited Method Summary
Public Methods
public static DeviceSuggestionsClient getClient (Activity activity)
Creates a new instance of
DeviceSuggestionsClient for use in an Activity.
Error resolutions will be automatically launched from the provided Activity,
displaying UI when necessary.
Parameters
| activity | the activity that is using this client |
|---|
public static DeviceSuggestionsClient getClient (Context context)
Creates a new instance of
DeviceSuggestionsClient for use in a non-Activity Context.
Error resolutions will be automatically launched from the provided Context, displaying
system tray notifications when necessary.
Parameters
| context | the context that is using this client |
|---|