Describing Android Framework Methods

To develop a mobile application, requests to mobile platform server use Android framework methods of the HyperHive main class.

NOTE. Before executing the methods execute authentication on mobile platform server using the auth or authWithChangePassword authentication method.

Authentication Methods

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)

User authentication with password change (authWithChangePassword)

Cancel authentication (unAuth)

Check user authentication (isAuthorized)

The use of methods is given in the Examples of Authentication on Mobile Platform Server examples.

Server Accessibility Check Method

Mobile platform server accessibility check (connectionStatus)

The method use is given in the Example of Mobile Platform Server Accessibility Check example.

Methods for Working with Local Database

Methods of this area are implemented in the DatabaseAPI unit, which is available in the HyperHive (hyperHive.databaseAPI) class.

Open default database (openDefaultBase)

Change database encryption key (reKeyBase)

Open or create a database (openBase)

Load resources scheme (resources)

SQL query to database (query)

Get table name (getTablesName)

Delete tables from database (dropCache)

Close default database (closeDefaultBase)

Close database (closeBase)

The use of methods is given in the Examples of Working with Resources section.

Methods for Working with Resources

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)

WEB Resource Request (web)

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)

Resume resource downloading (setUseDownload)

Set the path to the folder with files of the current resource downloading state (setDownloadPath)

The use of methods is given in the Examples of Working with Resources section.

Methods of Working with Push Notifications

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 for Working with Files

Download file from server (fileGet)

Upload file to server (filePut)

Decrypt file to a new file or memory buffer (fileDecrypt)

The use of methods is given in the Example of Working with Files article.

Methods for Working with Logs

Methods of this area are implemented in the LoggingAPI unit, which is available in the HyperHive (hyperHive.loggingAPI) class.

Logging (initLogging())

Set logging level (setLogLevel)

Display framework log in the console (setLogEnabled)

Create logs (logTrace, logWarning, logFatal)

Methods for Working with States

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