public class AsyncUserDiscovery
Wraps the com.kinvey.java.UserDiscovery public methods in asynchronous functionality using native Android AsyncTask.
This functionality can be accessed through the Client.userDiscovery
convenience method.
This API is used to search for users based on select criteria. Methods in this API return results via a
interface KinveyUserListCallback
.
Sample Usage:
mjsalinger 2.0`
Modifier and Type | Method and Description |
---|---|
void |
lookup(com.kinvey.java.model.UserLookup userlookup,
KinveyUserListCallback callback)
Asynchronous user lookup method
|
void |
lookupByFacebookID(java.lang.String facebookID,
KinveyUserListCallback callback)
Asynchronous user lookup by Facebook ID
|
void |
lookupByFullName(java.lang.String firstname,
java.lang.String lastname,
KinveyUserListCallback callback)
Asynchronous user lookup by first and last name
|
void |
lookupByUserName(java.lang.String username,
KinveyUserListCallback callback)
Asynchronous user lookup by username
|
com.kinvey.java.model.UserLookup |
userLookup() |
public com.kinvey.java.model.UserLookup userLookup()
public void lookupByFullName(java.lang.String firstname, java.lang.String lastname, KinveyUserListCallback callback)
Asynchronous user lookup by first and last name
Constructs an asynchronous request to find a user by first and last name, and returns the associated User object via a KinveyUserListCallback.
Sample Usage:
` *
firstname
- a java.lang.String object.lastname
- a java.lang.String object.callback
- a interface KinveyUserListCallback
object.public void lookupByUserName(java.lang.String username, KinveyUserListCallback callback)
Asynchronous user lookup by username
Constructs an asynchronous request to find a user by username, and returns the associated User object via a KinveyUserListCallback.
Sample Usage:
username
- a java.lang.String object.callback
- a interface KinveyUserListCallback
object.public void lookupByFacebookID(java.lang.String facebookID, KinveyUserListCallback callback)
Asynchronous user lookup by Facebook ID
Constructs an asynchronous request to find a user by facebook ID, and returns the associated User object via a KinveyUserListCallback.
Sample Usage:
facebookID
- a java.lang.String object.callback
- a interface KinveyUserListCallback
object.public void lookup(com.kinvey.java.model.UserLookup userlookup, KinveyUserListCallback callback)
Asynchronous user lookup method
Constructs an asynchronous request to find a user, and returns the associated User object via a KinveyClientCallback. Requests are constructed with a com.google.api.client.json.GenericJson object, which can be instantiated via the com.kinvey.java.UserDiscovery.userLookup factory method.
Sample Usage:
userlookup
- a UserLookup object.callback
- a com.kinvey.java.core.KinveyClientCallback object.