Name |
Description |
activationRequired()
|
This function sets the activation required state of this hybrid app to true. |
addAppInstallationListener( AppInstallationListener )
|
Register the application installation listener. |
addAppListener( ApplicationListener, [containingObject] )
|
Register the application listener. |
addConnectionListener( ConnectionStateListener, [containingObject] )
|
Register the connection state listener. |
addLogListener( LogListener, [containingObject] )
|
Register the log listener. |
addMenuItemCollection( collection )
|
This function adds a menu item collection to the menu items for the screen. |
addMessageListener( filters, MessageListener, [containingObject] )
|
Registers a message listener. |
addPushNotificationListener( PushNotificationListener, [containingObject] )
|
Register a push notification listener. |
CertificateStore()
|
Use these functions for X.509 credential handling. |
clearCache()
|
This function clears the contents of the on-device request result cache for the current hybrid app. |
clearCacheItem( cachekey )
|
This function clears an item from the contents of the on-device request result cache for the current hybrid app. |
ClientVariables( clientVariablesVersion, clientVariableItems )
|
Represents a ClientVariables object. |
ClientVariablesException( errCode, errMsg )
|
This exception is thrown when hwc.ClientVariables#getVariableValueByName is called with a variable name that does not exist. |
close()
|
This function closes the hybrid app. |
ConnectionSettings( regmethod, server, port, server, user, activationcode, protocol, password, urlsuffix )
|
Represents the connection settings for connecting to the SUP Server. |
connectToServer( [onNotification] )
|
Resumes the connection to the SUP server. |
convertLocalTimeToUtc( date )
|
Timezone |
convertUtcToLocalTime( date )
|
Timezone |
CustomIcon( width, height, type, name, path, processedPath, moduleId, moduleVersion, index )
|
Represents a CustomIcon. |
disconnectFromServer()
|
Suspends the connection to the SUP server. |
expireCredentials()
|
Allows the user to set the credentials to the expired state for the current hybrid app. |
getAllMessages( [messageFilter], [completeList] )
|
Gets received messages based on a filter and the existance of a default hybrid app. |
getAppByID( moduleID, version )
|
Gets a hwc.HybridApp object with the given module id and version. |
getAppIconUrl( app, processed )
|
This function gets the URL of the icon for a hybrid app depending on whether custom icons are defined. |
getApplicationConnectionID()
|
Gets the Hybrid Web Container application connection ID. |
getBuiltInIconUrl( iconIndex, processed )
|
Gets the icon URL for the built-in icon. |
getCallbackFromNativeError( errString )
|
Extract the error call back method name from a URL string. |
getClientVariables( moduleID, version )
|
Gets the client variables of the hybrid app with given module id and version. |
getCodeFromNativeError( errString )
|
Extract an error code from a URL string. |
getCurrentApp()
|
Gets the hybrid app that is currently open. |
getCurrentLocale()
|
Timezone |
getCustomIconUrl( moduleId, moduleVersion, iconIndex, processed )
|
Gets the URL to the custom icon. |
getDstOffsetAtGivenTimeInMinutes( date )
|
Timezone |
getExternalResource( url, options )
|
Makes an external cross domain request. |
getInstalledApps( [completeList] )
|
Returns an array of hwc.HybridApp objects. |
getLocalizedDate( date )
|
Timezone |
getLocalizedDateTime( date )
|
Timezone |
getLocalizedTime( date )
|
Timezone |
getLogEntries()
|
Call this function to get an array of hwc.LogEntry objects. |
getLoggingAlertDialog()
|
This function gets the callback used by hwc.log when it is required to notify the user of a log item. |
getLoggingCurrentLevel()
|
This function gets the logging level. |
getMessageByID( msgId )
|
Gets a hwc.Message object with the given message ID. |
getMsgIconUrl( msg )
|
This function gets the URL of the icon for a message object depending on its
processed status and whether there are custom icons defined. |
getNativeMessageFromNativeError( errString )
|
Extract a native message from a URL string. |
getOffsetFromUTC( date )
|
Timezone |
getOnErrorMessageFromNativeError( errString )
|
Extract the error message from a URL string. |
getPicture( onGetPictureError, onGetPictureSuccess, options )
|
Camera |
getQueryVariable( variable )
|
This function looks in the query string on the URL for the value corresponding to the given name. |
getServerInitiatedApps()
|
Returns an array of hwc.HybridApp objects that are server initiated. |
getSharedStorageKey()
|
Storage |
getTimezoneId()
|
Timezone |
getTransformData()
|
Returns the transform data for the hybridapp. |
getURLParamFromNativeError( paramName, url )
|
Extract a parameter value from a URL string with a given parameter name. |
getUsesDST()
|
Timezone |
getXMLHTTPRequest()
|
Reliably returns an XMLHttpRequest object regardless of what platform this code is being executed on. |
guid()
|
This function generates a GUID (globally unique identifier). |
hideProgressDialog()
|
This function hides the progress dialog displaying the spinner. |
HybridApp( moduleId, version, displayName, iconIndex, defaultCustomIcon, customIconList )
|
This object represents a hybrid app. |
isAndroid()
|
Platform |
isAndroid3()
|
Platform |
isBlackBerry()
|
Platform |
isBlackBerry5()
|
Platform |
isBlackBerry5WithTouchScreen()
|
Platform |
isBlackBerry6NonTouchScreen()
|
Platform |
isBlackBerry7()
|
Platform |
isClosed()
|
This function checks if the hybrid app has been closed. |
isDstActiveAtGivenTime( date )
|
Timezone |
isIOS()
|
Platform |
isIOS4()
|
Returns true if the hybrid app application is being run on iOS4 |
isIOS5()
|
Platform |
isIOS6()
|
Returns true if the hybrid app application is being run on iOS6 |
isIOS7()
|
Returns true if the hybrid app application is being run on iOS7 |
isIPad()
|
Platform |
isSharedStorageEnabled()
|
Storage |
isWindows()
|
Platform |
isWindowsMobile()
|
Platform |
loadSettings()
|
Loads the current connection settings from the native application storage. |
log( sMsg, eLevel, notifyUser )
|
Allows the user to log a message to the device trace log which can be remotely retrieved from the server. |
LogEntry( date, event, msg )
|
This object represents a log entry. |
markAsActivated()
|
This function sets the activation required state for the current hybrid app to false. |
markAsProcessed()
|
Allows the user to set the processed state to true for the current message. |
MenuItemCollection()
|
This class represents a collection of menu items. |
Message( msgId, date, icon, sender, isRead, processed, priority, subject, module, version )
|
Represents a message received by the HWC. |
MessageFilter( [sender], [subject], [moduleId], [version], [isread], [processed] )
|
Represents a filter used to filter messages. |
openApp( moduleId, version )
|
Launch the hybrid app with the given module ID and version. |
openMessage( msgId )
|
Launch the server initiated hybrid app associated with a message. |
removeAllMenuItems()
|
This function removes all menu items that were added by the hybrid app. |
removeAppInstallationListener( AppInstallationListener )
|
Remove the application installation listener. |
removeAppListener( ApplicationListener, [containingObject] )
|
Remove the application listener. |
removeConnectionListener( ConnectionStateListener, [containingObject] )
|
Remove the connection state listener. |
removeLogListener( LogListener, [containingObject] )
|
Remove the log listener. |
removeMessage( msgId )
|
Removes (deletes) a message. |
removeMessageListener( MessageListener, [containingObject] )
|
Removes the message listener. |
removePushNotificationListener( PushNotificationListener, [containingObject] )
|
Remove the push notification listener. |
sample_AppListener( event, moduleId, version )
|
A sample anonymous.ApplicationListener callback function. |
sample_ConnectionListener( event, errorCode, errorMessage )
|
A sample anonymous.ConnectionStateListener callback function. |
sample_InstallationAppListener( event, moduleId, version, moduleName, designerVersion, containerVersion )
|
Sample application listener callback function |
sample_LogListener( milliseconds, event, optionalString )
|
Sample anonymous.LogListener callback function. |
sample_MessageListener( flag, msgId )
|
A sample anonymous.MessageListener callback function. |
sample_PushNotificationListener( notifications )
|
A sample implementation of a anonymous.PushNotificationListener callback function. |
saveLoginCertificate( certificate )
|
This function saves login credentials from a certificate to the credential cache. |
saveLoginCredentials( userName, password )
|
This function saves login credentials to the credential cache. |
saveSettings( settings )
|
Save the connection settings to native application storage. |
setLoggingAlertDialog( newAlertDialogCallback )
|
This function sets the callback used by hwc.log when it is required to notify the user of a log item. |
setLoggingCurrentLevel( newLoggingLevel )
|
This function sets the logging level. |
setReportErrorFromNativeCallback( callbackToSet )
|
This function sets the callback function called when there is a native error reported. |
setScreenTitle_CONT( screenTitle )
|
Sets the title of the screen. |
SharedStorage()
|
Storage |
showAlertDialog( message, [title] )
|
Displays an alert dialog to the user. |
showAttachmentContents_CONT( contents, mimeType, fileName, waitDialogCallbackString )
|
Shows the given file contents in a content-appropriate way. |
showAttachmentFromCache_CONT( uniqueKey, mimeType, fileName, waitDialogCallbackString )
|
Shows the given file contents in a content-appropriate way. |
showCertificatePicker()
|
This function opens a form on the device that allows the user to specify the credentials for the use of
certificate-based authentication. |
showConfirmDialog( message, [title] )
|
Shows a confirm dialog to the user. |
showLocalAttachment( key )
|
Shows a local attachment. |
showProgressDialog( [message] )
|
This function shows a progress dialog with spinner. |
showUrlInBrowser( url )
|
This function opens the supplied URL in a browser. |
shutdown()
|
Shutdown the client connection to the SUP server. |
startClient( [onNotification] )
|
Start the client connection to the SUP server. |
this.getIconUrl( processed )
|
Gets the URL of this custom icon. |
updateMessageProcessed( msgId, status )
|
Updates the message processed status. |
updateMessageRead( msgId, status )
|
Updates the message read status. |