public class SearchServiceManager
extends java.lang.Object
Constructor and Description |
---|
SearchServiceManager() |
Modifier and Type | Method and Description |
---|---|
static android.content.ServiceConnection |
createAndBind(android.content.Context context,
SearchServiceConnectionCallback callback)
Initialize the new SearchAPI object which will use provided search api service key.
|
static void |
unbind(android.content.Context context,
android.content.ServiceConnection serviceConnection)
Helper method to unbind from service
|
@NonNull public static android.content.ServiceConnection createAndBind(android.content.Context context, SearchServiceConnectionCallback callback)
context
- Context to start a SearchServicecallback
- SearchServiceConnectionCallback which will receive info when connected to Servicepublic static void unbind(android.content.Context context, android.content.ServiceConnection serviceConnection)
context
- Android contextserviceConnection
- Current service connection