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 methods execute authentication using the auth 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)

Cancel authentication (unAuth)

Check user authentication (isAuthorized)

The use of methods is given in the Example of Authentication at Mobile Platform Server section.

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)

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)

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 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)

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