update #
Performs a partial content update on this object.
update(content, [options], [callback]) #
Arguments | Type | Description |
---|---|---|
content | JSON Object | User content |
options | JSON Object | Optional parameters |
callback | function | Optional callback handling the response |
Options #
Option | Type | Description | Default |
---|---|---|---|
queuable | boolean | Make this request queuable or not | true |
Return Value #
Returns the User
object to allow chaining.
Callback Response #
Returns the updated version of this object.
Usage #
JSONObject updateContent = new JSONObject()
.put("firstname", "My Name Is")
.put("lastname", "Jonas");
user.update(updateContent, new ResponseListener<User>() {
@Override
public void onSuccess(User updatedUser) {
}
@Override
public void onError(JSONObject error) {
}
});
Edit this page on Github(opens new window)