Press on the image to return to the main documentation page.
Parse
The Parse platform provides a complete backend solution for your mobile application. On Parse, you create an App for each of your mobile applications. Each App has its own application id and client key. Your account on Parse can accommodate multiple Apps. See the documentation on the Parse.com web site for more information. https://parse.com/docs/index
This library supports ParseObject, ParseQquery, ParseFile, ParseGeoPoint and Push Notifications.
All the operations which need to access the Parse online service are done asynchronously and raise events when complete whose parameters include a Success indication. If an error occurs Success will be False and a ParseException with a message describing the error will be placed in LastException. If necessary this should be processed in the event code as there is a possibility that a further error could occur in another asynchronous call that would overwrite the existing LastException.
Note that these asynchronous operations do not necessarily complete in the order in which they are invoked. To deal with this possibility a TaskID parameter is provided in each call that can be used, if required, to identify which of several possible method calls has just completed. This may not always be needed.
Copyright 2013 Anywhere Software
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
This object has three methods. Initialize, which is required to Initialize the Parse library. TrackOpening allows openings of your applications to be recorded. EnableNotifications lets your application receive push notifications.
ParseFile is a local representation of a file that is saved to the Parse cloud. The workflow is to construct a ParseFile with data and a filename. Then save it and set it as a field on a ParseObject. You can also use it to store any binary data (up to 10 megabytes).
Permissions:
android.permission.INTERNET
Events:
DoneGet(Success As Boolean, Data() As Byte, TaskID As Int) DoneSave(Success As Boolean, TaskID as Int)
ParseGeoPoint represents a latitude/longitude point that may be associated with a key in a ParseObject or used as a reference point for geo queries. This allows proximity based queries on the key.
Only one Key in a class may contain a GeoPoint.
Points should not equal or exceed the extreme ends of the allowable ranges. Latitude should not be -90.0 or 90.0. Longitude should not be -180.0 or 180.0. Attempting to set latitude or longitude out of bounds will cause an error.
The ParseObject is a local representation of data that can be saved and retrieved from the Parse cloud. The basic workflow for creating new data is to construct a new ParseObject, use Put() to fill it with data, and then use Save() to persist to the database. The basic workflow for accessing existing data is to use a ParseQuery to specify which existing data to retrieve.
Events:
DoneSave(Success As Boolean, TaskID As Int) DoneDelete(Success As Boolean, TaskID As Int) DoneRefresh(Success As Boolean, TaskID As Int)
A class that is used to access all of the children of a many-to-many relationship. Each instance of Parse.Relation is associated with a particular parent object and key. A ParseRelation is obtained by invoking GetRelation on a ParseObject.
DoneGet(Success As Boolean, PO As ParseObject, TaskId As Int) DoneFind(Success As Boolean, ListOfPO As List, TaskId As Int) DoneCount(Success As Boolean, Count As Int, TaskId As Int)
A class that is used to access all of the children of a many-to-many relationship. Each instance of Parse.Relation is associated with a particular parent object and key. A ParseRelation is obtained by invoking GetRelation on a ParseObject.