To develop a mobile application, requests to mobile platform server use Android framework methods of the HyperHive main class.
NOTE. Before executing methods execute authentication using the auth method.
Authentication methods are implemented in the AuthAPI unit, which instance is available in the HyperHive (hyperHive.authAPI) class.
Authenticate user by login and password (auth)
Cancel authentication (unAuth)
Check user authentication (isAuthorized)
The use of methods is given in the Example of Authentication at Mobile Platform Server section.
Methods of this area are implemented in the DatabaseAPI unit, which is available in the HyperHive (hyperHive.databaseAPI) class.
Open default database (openDefaultBase)
Open or create a database (openBase)
Load resources scheme (resources)
Get table name (getTablesName)
Delete tables from database (dropCache)
Close default database (closeDefaultBase)
The use of methods is given in the Examples of Working with Resources section.
Methods of this area are implemented in the RequestAPI unit, which instance is available in the HyperHive (hyperHive.requestAPI) class.
NOTE. If resource structure is changed in the data source, recreate it in the mobile platform administration panel, and recreate cache in the mobile framework. Otherwise the resource with the old structure is returned.
Add request parameters (setArgs)
Request to resource without loading to database (request)
Load delta to database (deltaStream)
Load table data to database (tableStream)
Get resource table data without loading to database (table)
Set global error handler (setRequestErrorListener)
The use of methods is given in the Examples of Working with Resources section.
Methods of this area are implemented in the PushAPI unit, which is available in the HyperHive (hyperHive.pushAPI) class.
Get list of active tokens (getTokens)
Send token to server (addToken)
Remove tokens from server (removeTokens)
Get message topics list (getTopics)
Message subscription (subscribe)
Unsubscribe from messages (unsubscribe)
The use of methods is given in the Example of Working with Push Notifications section.
Methods of this area are implemented in the LoggingAPI unit, which is available in the HyperHive (hyperHive.loggingAPI) class.
Set logging level (setLogLevel)
Create logs (logTrace, logWarning, logFatal)
Methods of this area are implemented in the StateAPI unit, which is available in the HyperHive (hyperHive.stateAPI) class.
Save state to database (saveStateToDB())
Restore state from database (restoreStateFromDB())
Core version (getVersionCoreAPI)
Plugin version (getVersionPlugin)
Save custom parameter to database (saveParamToDB())
Get parameter value from database (getParamFromDB())
To initialize and set up Android, see the Initializing Android Framework section.
To view examples of Android framework use, see the Examples of Android Framework Use section.
See also:
Android Framework | Initializing Android Framework | Examples of Android Framework Use