Package com.parse
Class ParseInstallation
- java.lang.Object
-
- com.parse.ParseObject
-
- com.parse.ParseInstallation
-
@ParseClassName("_Installation") public class ParseInstallation extends ParseObject
TheParseInstallationis a local representation of installation data that can be saved and retrieved from the Parse cloud.
-
-
Field Summary
-
Fields inherited from class com.parse.ParseObject
CREATOR, DEFAULT_PIN, KEY_CREATED_AT, KEY_UPDATED_AT
-
-
Constructor Summary
Constructors Constructor Description ParseInstallation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ParseInstallationgetCurrentInstallation()java.lang.StringgetDeviceToken()java.lang.StringgetInstallationId()Returns the unique ID of this installation.java.lang.StringgetPushType()static ParseQuery<ParseInstallation>getQuery()Constructs a query forParseInstallation.voidsetDeviceToken(java.lang.String deviceToken)voidsetObjectId(java.lang.String newObjectId)Setter for the object id.voidsetPushType(java.lang.String pushType)-
Methods inherited from class com.parse.ParseObject
add, addAll, addAllUnique, addUnique, containsKey, create, create, createWithoutData, createWithoutData, delete, deleteAll, deleteAllInBackground, deleteAllInBackground, deleteEventually, deleteEventually, deleteInBackground, deleteInBackground, describeContents, fetch, fetchAll, fetchAllIfNeeded, fetchAllIfNeededInBackground, fetchAllIfNeededInBackground, fetchAllInBackground, fetchAllInBackground, fetchFromLocalDatastore, fetchFromLocalDatastoreInBackground, fetchIfNeeded, fetchIfNeededInBackground, fetchIfNeededInBackground, fetchInBackground, fetchInBackground, fromJSON, fromJSON, get, getACL, getBoolean, getBytes, getClassName, getCreatedAt, getDate, getDouble, getInt, getJSONArray, getJSONObject, getList, getLong, getMap, getNumber, getObjectId, getParseFile, getParseGeoPoint, getParseObject, getParsePolygon, getParseUser, getRelation, getString, getUpdatedAt, has, hasSameId, increment, increment, isDataAvailable, isDataAvailable, isDirty, isDirty, keySet, pin, pin, pinAll, pinAll, pinAllInBackground, pinAllInBackground, pinAllInBackground, pinAllInBackground, pinInBackground, pinInBackground, pinInBackground, pinInBackground, put, registerSubclass, remove, removeAll, revert, revert, save, saveAll, saveAllInBackground, saveAllInBackground, saveEventually, saveEventually, saveInBackground, saveInBackground, setACL, unpin, unpin, unpinAll, unpinAll, unpinAll, unpinAll, unpinAllInBackground, unpinAllInBackground, unpinAllInBackground, unpinAllInBackground, unpinAllInBackground, unpinAllInBackground, unpinAllInBackground, unpinAllInBackground, unpinInBackground, unpinInBackground, unpinInBackground, unpinInBackground, writeToParcel
-
-
-
-
Method Detail
-
getCurrentInstallation
public static ParseInstallation getCurrentInstallation()
-
getQuery
public static ParseQuery<ParseInstallation> getQuery()
Constructs a query forParseInstallation.Note: We only allow the following types of queries for installations:
query.get(objectId) query.whereEqualTo("installationId", value) query.whereMatchesKeyInQuery("installationId", keyInQuery, query)You can add additional query clauses, but one of the above must appear as a top-level
ANDclause in the query.- See Also:
ParseQuery.getQuery(Class)
-
getInstallationId
public java.lang.String getInstallationId()
Returns the unique ID of this installation.- Returns:
- A UUID that represents this device.
-
setObjectId
public void setObjectId(java.lang.String newObjectId)
Description copied from class:ParseObjectSetter for the object id. In general you do not need to use this. However, in some cases this can be convenient. For example, if you are serializing aParseObjectyourself and wish to recreate it, you can use this to recreate theParseObjectexactly.- Overrides:
setObjectIdin classParseObject
-
getPushType
public java.lang.String getPushType()
-
setPushType
public void setPushType(java.lang.String pushType)
-
getDeviceToken
public java.lang.String getDeviceToken()
-
setDeviceToken
public void setDeviceToken(java.lang.String deviceToken)
-
-