com.parse
Class ParseInstallation

Object
  extended by com.parse.ParseObject
      extended by com.parse.ParseInstallation

public class ParseInstallation
extends ParseObject


Method Summary
static ParseInstallation getCurrentInstallation()
           
 String getInstallationId()
          Returns the unique ID of this installation.
static ParseQuery<ParseInstallation> getQuery()
          Constructs a query for ParseInstallations.
 void put(String key, Object value)
          Add a key-value pair to this object.
 void remove(String key)
          Removes a key from this object's data if it exists.
 void saveEventually(SaveCallback callback)
          Saves this object to the server at some unspecified time in the future, even if Parse is currently inaccessible.
 
Methods inherited from class com.parse.ParseObject
add, addAll, addAllUnique, addUnique, containsKey, create, create, createWithoutData, createWithoutData, delete, deleteEventually, deleteEventually, deleteInBackground, deleteInBackground, fetch, fetchAll, fetchAllIfNeeded, fetchAllIfNeededInBackground, fetchAllInBackground, fetchIfNeeded, fetchIfNeededInBackground, fetchInBackground, get, getACL, getBoolean, getBytes, getClassName, getCreatedAt, getDate, getDouble, getInt, getJSONArray, getJSONObject, getList, getLong, getMap, getNumber, getObjectId, getParseFile, getParseGeoPoint, getParseObject, getParseUser, getRelation, getString, getUpdatedAt, has, hasSameId, increment, increment, isDataAvailable, keySet, refresh, refreshInBackground, registerSubclass, removeAll, save, saveAll, saveAllInBackground, saveAllInBackground, saveEventually, saveInBackground, saveInBackground, setACL, setObjectId
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCurrentInstallation

public static ParseInstallation getCurrentInstallation()

getQuery

public static ParseQuery<ParseInstallation> getQuery()
Constructs a query for ParseInstallations.


getInstallationId

public String getInstallationId()
Returns the unique ID of this installation.

Returns:
A UUID that represents this device.

put

public void put(String key,
                Object value)
         throws IllegalArgumentException
Description copied from class: ParseObject
Add a key-value pair to this object. It is recommended to name keys in partialCamelCaseLikeThis.

Overrides:
put in class ParseObject
Parameters:
key - Keys must be alphanumerical plus underscore, and start with a letter.
value - Values may be numerical, String, JSONObject, JSONArray, JSONObject.NULL, or other ParseObjects. value may not be null.
Throws:
IllegalArgumentException

remove

public void remove(String key)
Description copied from class: ParseObject
Removes a key from this object's data if it exists.

Overrides:
remove in class ParseObject
Parameters:
key - The key to remove.

saveEventually

public void saveEventually(SaveCallback callback)
Description copied from class: ParseObject
Saves this object to the server at some unspecified time in the future, even if Parse is currently inaccessible. Use this when you may not have a solid network connection, and don't need to know when the save completes. If there is some problem with the object such that it can't be saved, it will be silently discarded. Objects saved with this method will be stored locally in an on-disk cache until they can be delivered to Parse. They will be sent immediately if possible. Otherwise, they will be sent the next time a network connection is available. Objects saved this way will persist even after the app is closed, in which case they will be sent the next time the app is opened. If more than 10MB of data is waiting to be sent, subsequent calls to saveEventually or deleteEventually will cause old saves to be silently discarded until the connection can be re-established, and the queued objects can be saved.

Overrides:
saveEventually in class ParseObject
Parameters:
callback - - A callback which will be called if the save completes before the app exits.