Generated at commit b'changeset: 1366:ce4a3f399607'
ActivityResultFacade
- setResultBoolean
- setResultByte
- setResultShort
- setResultChar
- setResultInteger
- setResultLong
- setResultFloat
- setResultDouble
- setResultString
- setResultBooleanArray
- setResultByteArray
- setResultShortArray
- setResultCharArray
- setResultIntegerArray
- setResultLongArray
- setResultFloatArray
- setResultDoubleArray
- setResultStringArray
- setResultSerializable
AndroidFacade
- setClipboard
- getClipboard
- startActivityForResult
- startActivityForResultIntent
- startActivity
- sendBroadcast
- makeIntent
- startActivityIntent
- sendBroadcastIntent
- vibrate
- makeToast
- getInput
- getPassword
- notify
- getIntent
- sendEmail
- getPackageVersionCode
- getPackageVersion
- requiredVersion
- log
- environment
- getConstants
ApplicationManagerFacade
BatteryManagerFacade
- readBatteryData
- batteryStartMonitoring
- batteryStopMonitoring
- batteryGetStatus
- batteryGetHealth
- batteryCheckPresent
- batteryGetLevel
- batteryGetVoltage
- batteryGetTemperature
- batteryGetTechnology
Bluetooth4Facade
- bluetoothMakeConnectable
- bluetoothActiveConnections
- bluetoothWriteBinary
- bluetoothReadBinary
- bluetoothConnect
- bluetoothAccept
- bluetoothMakeDiscoverable
- bluetoothWrite
- bluetoothReadReady
- bluetoothRead
- bluetoothReadLine
- bluetoothMakeUndiscoverable
- bluetoothGetRemoteDeviceName
- bluetoothGetLocalName
- bluetoothSetLocalName
- bluetoothGetScanMode
- bluetoothGetConnectedDeviceName
- checkBluetoothState
- bluetoothFactoryReset
- toggleBluetoothState
- bluetoothStop
- bluetoothGetLocalAddress
- bluetoothDiscoveryStart
- bluetoothDiscoveryCancel
- bluetoothIsDiscovering
- bluetoothGetDiscoveredDevices
- bluetoothConfigHciSnoopLog
- bluetoothGetControllerActivityEnergyInfo
- bluetoothIsHardwareTrackingFiltersAvailable
- bluetoothGetLeState
- bluetoothEnableBLE
- bluetoothDisableBLE
- bluetoothListenForBleStateChange
- bluetoothStopListeningForBleStateChange
- bluetoothStartListeningForAdapterStateChange
- bluetoothStopListeningForAdapterStateChange
BluetoothA2dpFacade
- bluetoothA2dpIsReady
- bluetoothA2dpSetPriority
- bluetoothA2dpConnect
- bluetoothA2dpDisconnect
- bluetoothA2dpGetConnectedDevices
BluetoothA2dpSinkFacade
- bluetoothA2dpSinkSetPriority
- bluetoothA2dpSinkGetPriority
- bluetoothA2dpSinkIsReady
- bluetoothA2dpSinkConnect
- bluetoothA2dpSinkDisconnect
- bluetoothA2dpSinkGetConnectedDevices
- bluetoothA2dpSinkGetConnectionStatus
BluetoothAvrcpFacade
BluetoothConnectionFacade
- bluetoothStartConnectionStateChangeMonitor
- bluetoothStartPairingHelper
- bluetoothGetConnectedDevices
- bluetoothGetConnectedLeDevices
- bluetoothIsDeviceConnected
- bluetoothGetConnectedDevicesOnProfile
- bluetoothDiscoverAndConnect
- bluetoothDiscoverAndBond
- bluetoothUnbond
- bluetoothConnectBonded
- bluetoothDisconnectConnected
- bluetoothDisconnectConnectedProfile
- bluetoothChangeProfileAccessPermission
BluetoothFacade
- bluetoothActiveConnections
- bluetoothWriteBinary
- bluetoothReadBinary
- bluetoothConnect
- bluetoothAccept
- bluetoothMakeDiscoverable
- bluetoothWrite
- bluetoothReadReady
- bluetoothRead
- bluetoothReadLine
- bluetoothGetRemoteDeviceName
- bluetoothGetLocalName
- bluetoothSetLocalName
- bluetoothGetScanMode
- bluetoothGetConnectedDeviceName
- checkBluetoothState
- toggleBluetoothState
- bluetoothStop
- bluetoothGetLocalAddress
- bluetoothDiscoveryStart
- bluetoothDiscoveryCancel
- bluetoothIsDiscovering
BluetoothHfpClientFacade
- bluetoothHfpClientIsReady
- bluetoothHfpClientSetPriority
- bluetoothHfpClientGetPriority
- bluetoothHfpClientConnect
- bluetoothHfpClientDisconnect
- bluetoothHfpClientGetConnectedDevices
- bluetoothHfpClientGetConnectionStatus
BluetoothHidFacade
- bluetoothHidIsReady
- bluetoothHidConnect
- bluetoothHidDisconnect
- bluetoothHidGetConnectedDevices
- bluetoothHidGetConnectionStatus
- bluetoothHidSetReport
- bluetoothHidGetReport
- bluetoothHidSendData
- bluetoothHidVirtualUnplug
- testByte
BluetoothHspFacade
- bluetoothHspIsReady
- bluetoothHspSetPriority
- bluetoothHspConnect
- bluetoothHspDisconnect
- bluetoothHspGetConnectedDevices
- bluetoothHspGetConnectionStatus
BluetoothLeAdvertiseFacade
- bleGenBleAdvertiseCallback
- bleBuildAdvertiseData
- bleBuildAdvertiseSettings
- bleStopBleAdvertising
- bleStartBleAdvertising
- bleStartBleAdvertisingWithScanResponse
- bleGetAdvertiseSettingsMode
- bleGetAdvertiseSettingsTxPowerLevel
- bleGetAdvertiseSettingsIsConnectable
- bleGetAdvertiseDataIncludeTxPowerLevel
- bleGetAdvertiseDataManufacturerSpecificData
- bleGetAdvertiseDataIncludeDeviceName
- bleGetAdvertiseDataServiceData
- bleGetAdvertiseDataServiceUuids
- bleSetAdvertiseDataSetServiceUuids
- bleAddAdvertiseDataServiceData
- bleAddAdvertiseDataManufacturerId
- bleSetAdvertiseSettingsAdvertiseMode
- bleSetAdvertiseSettingsTxPowerLevel
- bleSetAdvertiseSettingsIsConnectable
- bleSetAdvertiseDataIncludeTxPowerLevel
- bleSetAdvertiseSettingsTimeout
- bleSetAdvertiseDataIncludeDeviceName
BluetoothLeScanFacade
- bleGenScanCallback
- bleGenLeScanCallback
- bleGenFilterList
- bleBuildScanFilter
- bleBuildScanSetting
- bleStopBleScan
- bleStopClassicBleScan
- bleStartBleScan
- bleStartClassicBleScan
- bleStartClassicBleScanWithServiceUuids
- bleFlushPendingScanResults
- bleSetScanSettingsCallbackType
- bleSetScanSettingsReportDelayMillis
- bleSetScanSettingsScanMode
- bleSetScanSettingsResultType
- bleGetScanSettingsCallbackType
- bleGetScanSettingsReportDelayMillis
- bleGetScanSettingsScanMode
- bleGetScanSettingsScanResultType
- bleGetScanFilterManufacturerId
- bleGetScanFilterDeviceAddress
- bleGetScanFilterDeviceName
- bleGetScanFilterManufacturerData
- bleGetScanFilterManufacturerDataMask
- bleGetScanFilterServiceData
- bleGetScanFilterServiceDataMask
- bleGetScanFilterServiceUuid
- bleGetScanFilterServiceUuidMask
- bleSetScanFilterDeviceAddress
- bleSetScanFilterManufacturerData
- bleSetScanFilterServiceData
- bleSetScanFilterServiceUuid
- bleSetScanFilterDeviceName
- bleSetScanSettingsMatchMode
- bleGetScanSettingsMatchMode
- bleSetScanSettingsNumOfMatches
- bleGetScanSettingsNumberOfMatches
BluetoothMapClientFacade
- bluetoothMapClientConnect
- mapSendMessage
- bluetoothMapClientIsReady
- bluetoothMapClientDisconnect
- bluetoothMapClientGetConnectedDevices
BluetoothMapFacade
BluetoothMediaFacade
- bluetoothMediaPassthrough
- bluetoothMediaGetCurrentMediaMetaData
- bluetoothMediaGetActiveMediaSessions
- bluetoothMediaConnectToCarMBS
- bluetoothMediaPhoneSL4AMBSStart
- bluetoothMediaPhoneSL4AMBSStop
- bluetoothMediaHandleMediaCommandOnPhone
BluetoothPanFacade
- bluetoothPanSetBluetoothTethering
- bluetoothPanIsReady
- bluetoothPanGetConnectedDevices
- bluetoothPanIsTetheringOn
BluetoothPbapClientFacade
- bluetoothPbapClientIsReady
- bluetoothPbapClientSetPriority
- bluetoothPbapClientGetPriority
- bluetoothPbapClientConnect
- bluetoothPbapClientDisconnect
- bluetoothPbapClientGetConnectedDevices
- bluetoothPbapClientGetConnectionStatus
BluetoothRfcommFacade
- bluetoothRfcommBeginConnectThread
- bluetoothRfcommKillConnThread
- bluetoothRfcommEndConnectThread
- bluetoothRfcommEndAcceptThread
- bluetoothRfcommActiveConnections
- bluetoothRfcommGetConnectedDeviceName
- bluetoothRfcommBeginAcceptThread
- bluetoothRfcommWrite
- bluetoothRfcommRead
- bluetoothRfcommWriteBinary
- bluetoothRfcommReadBinary
- bluetoothRfcommReadReady
- bluetoothRfcommReadLine
- bluetoothRfcommStop
CameraFacade
CommonIntentsFacade
ContactsFacade
- contactsDisplayContactPickList
- contactsDisplayPhonePickList
- contactsGetAttributes
- contactsGetContactIds
- contactsGetAllContacts
- contactsGetContactById
- contactsGetCount
- contactsEraseAll
- contactsQueryContent
- queryAttributes
- importVcf
- exportVcf
EventFacade
- eventClearBuffer
- eventRegisterForBroadcast
- eventUnregisterForBroadcast
- eventGetBrodcastCategories
- eventPoll
- eventWaitFor
- eventWait
- eventPost
- rpcPostEvent
- receiveEvent
- waitForEvent
- startEventDispatcher
- stopEventDispatcher
EyesFreeFacade
GattClientFacade
- gattClientConnectGatt
- gattClientDiscoverServices
- gattClientGetServices
- gattClientAbortReliableWrite
- gattClientBeginReliableWrite
- gattClientRequestMtu
- gattClientDisconnect
- gattClientClose
- gattExecuteReliableWrite
- gattClientGetConnectedDevices
- gattGetDevice
- gattClientGetDevicesMatchingConnectionStates
- gattClientGetServiceUuidList
- gattClientReadCharacteristic
- gattClientReadDescriptor
- gattClientWriteDescriptor
- gattClientDescriptorSetValue
- gattClientWriteCharacteristic
- gattClientCharacteristicSetValue
- gattClientCharacteristicSetWriteType
- gattClientReadRSSI
- gattClientRefresh
- gattClientRequestConnectionPriority
- gattClientSetCharacteristicNotification
- gattCreateGattCallback
- gattClientGetDiscoveredServicesCount
- gattClientGetDiscoveredServiceUuid
- gattClientGetDiscoveredCharacteristicUuids
- gattClientGetDiscoveredDescriptorUuids
GattServerFacade
- gattServerOpenGattServer
- gattServerAddService
- gattServerClearServices
- gattServerGetConnectedDevices
- gattServerSendResponse
- gattServerNotifyCharacteristicChanged
- gattServerCreateService
- gattServiceAddCharacteristic
- gattServerAddCharacteristicToService
- gattServerClose
- gattGetConnectedDevices
- gattGetServiceUuidList
- gattGetService
- gattServerCharacteristicAddDescriptor
- gattServerCreateBluetoothGattCharacteristic
- gattServerCharacteristicSetValue
- gattServerCreateGattServerCallback
- gattServerCreateBluetoothGattDescriptor
LocationFacade
- locationProviders
- locationProviderEnabled
- startLocating
- readLocation
- stopLocating
- getLastKnownLocation
- geocode
MediaPlayerFacade
- mediaPlay
- mediaPlayPause
- mediaPlayStart
- mediaPlayClose
- mediaIsPlaying
- mediaPlayInfo
- mediaPlayList
- mediaPlaySetLooping
- mediaPlaySeek
MediaRecorderFacade
- recorderStartMicrophone
- recorderStartVideo
- recorderCaptureVideo
- recorderStop
- startInteractiveVideoRecording
NfcManagerFacade
PhoneFacade
- startTrackingPhoneState
- readPhoneState
- stopTrackingPhoneState
- phoneCall
- phoneCallNumber
- phoneDial
- phoneDialNumber
- getCellLocation
- getNetworkOperator
- getNetworkOperatorName
- getNetworkType
- getPhoneType
- getSimCountryIso
- getSimOperator
- getSimOperatorName
- getSimSerialNumber
- getSimState
- getSubscriberId
- getVoiceMailAlphaTag
- getVoiceMailNumber
- checkNetworkRoaming
- getDeviceId
- getDeviceSoftwareVersion
- getLine1Number
- getNeighboringCellInfo
PreferencesFacade
SensorManagerFacade
- startSensingTimed
- startSensingThreshold
- readSensors
- stopSensing
- sensorsGetAccuracy
- sensorsGetLight
- sensorsReadAccelerometer
- sensorsReadMagnetometer
- sensorsReadOrientation
- startSensing
SettingsFacade
- setScreenTimeout
- getScreenTimeout
- checkAirplaneMode
- toggleAirplaneMode
- checkRingerSilentMode
- toggleRingerSilentMode
- toggleVibrateMode
- getVibrateMode
- getMaxRingerVolume
- getRingerVolume
- setRingerVolume
- getMaxMediaVolume
- getMediaVolume
- setMediaVolume
- getScreenBrightness
- setScreenBrightness
- checkScreenOn
SignalStrengthFacade
SmsFacade
- smsSend
- smsGetMessageCount
- smsGetMessageIds
- smsGetMessages
- smsGetMessageById
- smsGetAttributes
- smsDeleteMessage
- smsMarkMessageRead
SpeechRecognitionFacade
TelecomCallFacade
TextToSpeechFacade
ToneGeneratorFacade
USBHostSerialFacade
- usbserialGetDeviceList
- usbserialDisconnect
- usbserialActiveConnections
- usbserialWriteBinary
- usbserialReadBinary
- usbserialConnect
- usbserialHostEnable
- usbserialWrite
- usbserialReadReady
- usbserialRead
- usbserialGetDeviceName
UiFacade
- dialogCreateInput
- dialogCreatePassword
- dialogGetInput
- dialogGetPassword
- dialogCreateSpinnerProgress
- dialogCreateHorizontalProgress
- dialogCreateAlert
- dialogCreateSeekBar
- dialogCreateTimePicker
- dialogCreateDatePicker
- dialogDismiss
- dialogShow
- dialogSetCurrentProgress
- dialogSetMaxProgress
- dialogSetPositiveButtonText
- dialogSetNegativeButtonText
- dialogSetNeutralButtonText
- dialogSetItems
- dialogSetSingleChoiceItems
- dialogSetMultiChoiceItems
- dialogGetResponse
- dialogGetSelectedItems
- webViewShow
- addContextMenuItem
- addOptionsMenuItem
- clearContextMenu
- clearOptionsMenu
- fullShow
- fullDismiss
- fullQuery
- fullQueryDetail
- fullSetProperty
- fullSetList
- fullSetTitle
- fullKeyOverride
WakeLockFacade
WebCamFacade
WifiFacade
- wifiAddNetwork
- wifiConnect
- wifiEnableNetwork
- wifiEnterpriseConnect
- wifiGetScanResults
- wifiLockAcquireFull
- wifiLockAcquireScanOnly
- wifiLockRelease
- wifiStartScan
- checkWifiState
- toggleWifiState
- wifiDisconnect
- wifiGetConnectionInfo
- wifiReassociate
- wifiReconnect
void dialogCreateInput( final String title, final String message, final String text, final String inputType)
Create a text input dialog.
void dialogCreatePassword( final String title, final String message)
Create a password input dialog.
String dialogGetInput( final String title, final String message, final String text)
Queries the user for a text input.
String dialogGetPassword( final String title, final String message)
Queries the user for a password.
void dialogCreateSpinnerProgress(String title, String message, Integer max)
Create a spinner progress dialog.
void dialogCreateHorizontalProgress( String title, String message, Integer max)
Create a horizontal progress dialog.
void dialogCreateAlert(String title, String message)
Create alert dialog.
void dialogCreateSeekBar( Integer progress, Integer max, String title, String message)
Create seek bar dialog.
void dialogCreateTimePicker( Integer hour, Integer minute, Boolean is24hour)
Create time picker dialog.
void dialogCreateDatePicker(Integer year, Integer month, Integer day)
Create date picker dialog.
void dialogDismiss()
Dismiss dialog.
void dialogShow()
Show dialog.
void dialogSetCurrentProgress(Integer current)
Set progress dialog current value.
void dialogSetMaxProgress(Integer max)
Set progress dialog maximum value.
void dialogSetPositiveButtonText(String text)
Set alert dialog positive button text.
void dialogSetNegativeButtonText(String text)
Set alert dialog button text.
void dialogSetNeutralButtonText(String text)
Set alert dialog button text.
void dialogSetItems(JSONArray items)
Set alert dialog list items.
void dialogSetSingleChoiceItems( JSONArray items, Integer selected)
Set dialog single choice items and selected item.
void dialogSetMultiChoiceItems( JSONArray items, JSONArray selected)
Set dialog multiple choice items and selection.
Object dialogGetResponse()
Returns dialog response.
Set<Integer> dialogGetSelectedItems()
This method provides list of items user selected.
Returns Selected items
void webViewShow( String url, Boolean wait)
Display a WebView with the given URL.
void addContextMenuItem( String label, String event, Object data)
Adds a new item to context menu.
void addOptionsMenuItem( String label, String event, Object data, String iconName)
Adds a new item to options menu.
void clearContextMenu()
Removes all items previously added to context menu.
void clearOptionsMenu()
Removes all items previously added to options menu.
List<String> fullShow( String layout, String title)
Show Full Screen.
void fullDismiss()
Dismiss Full Screen.
Map<String, Map<String, String>> fullQuery()
Get Fullscreen Properties
Map<String, String> fullQueryDetail( String id)
Get fullscreen properties for a specific widget
String fullSetProperty( String id, String property, String value)
Set fullscreen widget property
String fullSetList( String id, JSONArray items)
Attach a list to a fullscreen widget
void fullSetTitle( String title)
Set the Full Screen Activity Title
JSONArray fullKeyOverride( JSONArray keycodes, Boolean enable)
Override default key actions
void smsSend( String destinationAddress, String text)
Sends an SMS.
Integer smsGetMessageCount(Boolean unreadOnly, String folder)
Returns the number of messages.
List<Integer> smsGetMessageIds(Boolean unreadOnly, String folder)
Returns a List of all message IDs.
List<JSONObject> smsGetMessages(Boolean unreadOnly, String folder, JSONArray attributes)
Returns a List of all messages.
Returns a List of messages as Maps
JSONObject smsGetMessageById( Integer id, JSONArray attributes)
Returns message attributes.
List<String> smsGetAttributes()
Returns a List of all possible message attributes.
Boolean smsDeleteMessage(Integer id)
Deletes a message.
Returns True if the message was deleted
Integer smsMarkMessageRead( JSONArray ids, Boolean read)
Marks messages as read.
Returns number of messages marked read
Bundle readBatteryData()
Returns the most recently recorded battery data.
void batteryStartMonitoring()
Starts tracking battery state.
void batteryStopMonitoring()
Stops tracking battery state.
Integer batteryGetStatus()
Returns the most recently received battery status data:\n1 - unknown;\n2 - charging;\n3 - discharging;\n4 - not charging;\n5 - full;
Integer batteryGetHealth()
Returns the most recently received battery health data:\n1 - unknown;\n2 - good;\n3 - overheat;\n4 - dead;\n5 - over voltage;\n6 - unspecified failure;
Boolean batteryCheckPresent()
Returns the most recently received battery presence data.
Integer batteryGetLevel()
Returns the most recently received battery level (percentage).
Integer batteryGetVoltage()
Returns the most recently received battery voltage.
Integer batteryGetTemperature()
Returns the most recently received battery temperature.
String batteryGetTechnology()
Returns the most recently received battery technology data.
void bluetoothMediaPassthrough( String passthruCmd)
Simulate a passthrough command
Map<String, String> bluetoothMediaGetCurrentMediaMetaData()
Gets the Metadata of currently playing Media
List<String> bluetoothMediaGetActiveMediaSessions()
Get the current active Media Sessions
void bluetoothMediaConnectToCarMBS()
Connect a MediaBrowser to the A2dpMediaBrowserservice in the Carkitt
void bluetoothMediaPhoneSL4AMBSStart()
Start the BluetoothSL4AAudioSrcMBS on Phone.
void bluetoothMediaPhoneSL4AMBSStop()
Stop the BluetoothSL4AAudioSrcMBS running on Phone.
void bluetoothMediaHandleMediaCommandOnPhone(String command)
Media Commands on the Phone's BluetoothAvrcpMBS.
Bundle cameraCapturePicture( final String targetPath, Boolean useAutoFocus, Integer cameraId)
Take a picture and save it to the specified path.
Returns A map of Booleans autoFocus and takePicture where True indicates success. cameraId also included.
void cameraInteractiveCapturePicture( final String targetPath)
Starts the image capture application to take a picture and saves it to the specified path.
Map<String, String> camerasList()
Get Camera List, Id and parameters.
Returns Map of (cameraId, information).information is comma separated and order is:canDisableShtterSound,facing,orientation.facing: 0=BACK, 1=FACE.orientation: 0,90,180,270=camera image.
Boolean nfcIsEnabled()
Check if NFC hardware is enabled.
void nfcStartTrackingStateChange()
Start tracking NFC hardware state changes.
void nfcStopTrackingStateChange()
Stop tracking NFC hardware state changes.
Boolean bluetoothPbapClientIsReady()
Is PbapClient profile ready.
void bluetoothPbapClientSetPriority( String deviceStr, Integer priority)
Set priority of the profile
Integer bluetoothPbapClientGetPriority( String deviceStr)
Get priority of the profile
Boolean bluetoothPbapClientConnect( String deviceStr)
Connect to an PBAP Client device.
Boolean bluetoothPbapClientDisconnect( String deviceStr)
Disconnect an PBAP Client device.
List<BluetoothDevice> bluetoothPbapClientGetConnectedDevices()
Get all the devices connected through PBAP Client.
Integer bluetoothPbapClientGetConnectionStatus( String deviceID)
Get the connection status of a device.
void bluetoothStartConnectionStateChangeMonitor( String deviceID)
Start monitoring state changes for input device.
void bluetoothStartPairingHelper( Boolean autoConfirm)
Start intercepting all bluetooth connection pop-ups.
List<BluetoothDevice> bluetoothGetConnectedDevices()
Return a list of devices connected through bluetooth
List<BluetoothDevice> bluetoothGetConnectedLeDevices(Integer profile)
Return a list of devices connected through bluetooth LE
Boolean bluetoothIsDeviceConnected(String deviceID)
Return true if a bluetooth device is connected.
List<BluetoothDevice> bluetoothGetConnectedDevicesOnProfile( Integer profileId)
Return list of connected bluetooth devices over a profile
Returns List of devices connected over the profile
Boolean bluetoothDiscoverAndConnect( String deviceID)
Connect to a specified device once it's discovered.
Returns Whether discovery started successfully.
Boolean bluetoothDiscoverAndBond( String deviceID)
Bond to a specified device once it's discovered.
Returns Whether discovery started successfully.
Boolean bluetoothUnbond( String deviceID)
Unbond a device.
Returns Whether the device was successfully unbonded.
void bluetoothConnectBonded( String deviceID)
Connect to a device that is already bonded.
void bluetoothDisconnectConnected( String deviceID)
Disconnect from a device that is already connected.
void bluetoothDisconnectConnectedProfile( String deviceID, JSONArray profileSet )
Disconnect on a profile from a device that is already connected.
void bluetoothChangeProfileAccessPermission( String deviceID, Integer profileID, Integer access )
Change permissions for a profile.
Integer bleGenScanCallback()
Generate a new myScanCallback Object
Integer bleGenLeScanCallback()
Generate a new myScanCallback Object
Integer bleGenFilterList()
Generate a new Filter list
Integer bleBuildScanFilter( Integer filterIndex )
Generate a new Filter list
Integer bleBuildScanSetting()
Generate a new scan settings Object
void bleStopBleScan( Integer index)
Stops an ongoing ble advertisement scan
void bleStopClassicBleScan( Integer index)
Stops an ongoing classic ble scan
void bleStartBleScan( Integer filterListIndex, Integer scanSettingsIndex, Integer callbackIndex )
Starts a ble advertisement scan
boolean bleStartClassicBleScan( Integer leCallbackIndex )
Starts a classic ble advertisement scan
boolean bleStartClassicBleScanWithServiceUuids( Integer leCallbackIndex, String[] serviceUuidList )
Starts a classic ble advertisement scan with service Uuids
void bleFlushPendingScanResults( Integer callbackIndex )
Gets the results of the ble ScanCallback
void bleSetScanSettingsCallbackType( Integer callbackType)
Set the scan setting's callback type
void bleSetScanSettingsReportDelayMillis( Long reportDelayMillis)
Set the scan setting's report delay millis
void bleSetScanSettingsScanMode( Integer scanMode)
Set the scan setting's scan mode
void bleSetScanSettingsResultType( Integer scanResultType)
Set the scan setting's scan result type
Integer bleGetScanSettingsCallbackType( Integer index )
Get ScanSetting's callback type
Long bleGetScanSettingsReportDelayMillis( Integer index)
Get ScanSetting's report delay milliseconds
Integer bleGetScanSettingsScanMode( Integer index)
Get ScanSetting's scan mode
Integer bleGetScanSettingsScanResultType( Integer index)
Get ScanSetting's scan result type
Integer bleGetScanFilterManufacturerId( Integer index, Integer filterIndex)
Get ScanFilter's Manufacturer Id
String bleGetScanFilterDeviceAddress( Integer index, Integer filterIndex)
Get ScanFilter's device address
String bleGetScanFilterDeviceName( Integer index, Integer filterIndex)
Get ScanFilter's device name
byte[] bleGetScanFilterManufacturerData( Integer index, Integer filterIndex)
Get ScanFilter's manufacturer data
byte[] bleGetScanFilterManufacturerDataMask( Integer index, Integer filterIndex)
Get ScanFilter's manufacturer data mask
byte[] bleGetScanFilterServiceData( Integer index, Integer filterIndex)
Get ScanFilter's service data
byte[] bleGetScanFilterServiceDataMask( Integer index, Integer filterIndex)
Get ScanFilter's service data mask
String bleGetScanFilterServiceUuid( Integer index, Integer filterIndex)
Get ScanFilter's service uuid
String bleGetScanFilterServiceUuidMask( Integer index, Integer filterIndex)
Get ScanFilter's service uuid mask
void bleSetScanFilterDeviceAddress( String macAddress )
Add filter \"macAddress\" to existing ScanFilter
void bleSetScanFilterManufacturerData( Integer manufacturerDataId, byte[] manufacturerData, byte[] manufacturerDataMask )
Add filter \"manufacturereDataId and/or manufacturerData\" to existing ScanFilter
void bleSetScanFilterServiceData( String serviceUuid, byte[] serviceData, byte[] serviceDataMask )
Add filter \"serviceData and serviceDataMask\" to existing ScanFilter
void bleSetScanFilterServiceUuid( String serviceUuid, String serviceMask )
Add filter \"serviceUuid and/or serviceMask\" to existing ScanFilter
void bleSetScanFilterDeviceName( String name )
Sets the scan filter's device name
void bleSetScanSettingsMatchMode( Integer mode)
Set the scan setting's match mode
int bleGetScanSettingsMatchMode( Integer scanSettingsIndex )
Get the scan setting's match mode
void bleSetScanSettingsNumOfMatches( Integer matches)
Set the scan setting's number of matches
int bleGetScanSettingsNumberOfMatches( Integer scanSettingsIndex)
Get the scan setting's number of matches
Call telecomCallGetCallById(String callId)
Get call by particular Id
Boolean bluetoothMapIsReady()
Is Map profile ready.
Boolean bluetoothMapDisconnect( String deviceID)
Disconnect an MAP device.
List<BluetoothDevice> bluetoothMapGetConnectedDevices()
Get all the devices connected through MAP.
BluetoothDevice bluetoothMapGetClient()
Get the currently connected remote Bluetooth device (PCE).
Intent pick(String uri)
Display content to be picked by URI (e.g. contacts)
Returns A map of result values.
Intent scanBarcode()
Starts the barcode scanner.
Returns A Map representation of the result Intent.
void view( String uri, String type, JSONObject extras)
Start activity with view action by URI (i.e. browser, contacts, etc.).
void viewMap(String query)
Opens a map search for query (e.g. pizza, 123 My Street).
void viewContacts()
Opens the list of contacts.
void viewHtml( String path)
Opens the browser to display a local HTML file.
void search(String query)
Starts a search for the given query.
int gattServerOpenGattServer(Integer index)
Open new gatt server
void gattServerAddService(Integer index, Integer serviceIndex)
Add service to bluetooth gatt server
void gattServerClearServices( Integer index)
Clear services from bluetooth gatt server
List<BluetoothDevice> gattServerGetConnectedDevices( Integer gattServerIndex)
Return a list of connected gatt devices.
void gattServerSendResponse( Integer gattServerIndex, Integer bluetoothDeviceIndex, Integer requestId, Integer status, Integer offset, byte[] value)
Send a response after a write.
void gattServerNotifyCharacteristicChanged( Integer gattServerIndex, Integer bluetoothDeviceIndex, Integer characteristicIndex, Boolean confirm)
Notify that characteristic was changed.
int gattServerCreateService(String uuid, Integer serviceType)
Create new bluetooth gatt service
void gattServiceAddCharacteristic( Integer index, String serviceUuid, Integer characteristicIndex)
Add a characteristic to a bluetooth gatt service
void gattServerAddCharacteristicToService(Integer index, Integer characteristicIndex )
Add a characteristic to a bluetooth gatt service
void gattServerClose(Integer index)
Close a bluetooth gatt
List<BluetoothDevice> gattGetConnectedDevices( Integer index)
Get a list of Bluetooth Devices connnected to the bluetooth gatt
ArrayList<String> gattGetServiceUuidList(Integer index)
Get the service from an input UUID
BluetoothGattService gattGetService(Integer index, String uuid)
Get the service from an input UUID
void gattServerCharacteristicAddDescriptor(Integer index, Integer descriptorIndex)
add descriptor to blutooth gatt characteristic
int gattServerCreateBluetoothGattCharacteristic( String characteristicUuid, Integer property, Integer permission)
Create a new Characteristic object
void gattServerCharacteristicSetValue(Integer index, byte[] value)
add descriptor to blutooth gatt characteristic
Integer gattServerCreateGattServerCallback()
Create a new GattCallback object
int gattServerCreateBluetoothGattDescriptor( String descriptorUuid, Integer permissions)
Create a new Descriptor object
void startTrackingPhoneState()
Starts tracking phone state.
Bundle readPhoneState()
Returns the current phone state and incoming number.
Returns A Map of \"state\" and \"incomingNumber\"
void stopTrackingPhoneState()
Stops tracking phone state.
void phoneCall(final String uriString)
Calls a contact/phone number by URI.
void phoneCallNumber(final String number)
Calls a phone number.
void phoneDial(final String uri)
Dials a contact/phone number by URI.
void phoneDialNumber(final String number)
Dials a phone number.
CellLocation getCellLocation()
Returns the current cell location.
String getNetworkOperator()
Returns the numeric name (MCC+MNC) of current registered operator.
String getNetworkOperatorName()
Returns the alphabetic name of current registered operator.
String getNetworkType()
Returns a the radio technology (network type) currently in use on the device.
String getPhoneType()
Returns the device phone type.
String getSimCountryIso()
Returns the ISO country code equivalent for the SIM provider's country code.
String getSimOperator()
Returns the MCC+MNC (mobile country code + mobile network code) of the provider of the SIM. 5 or 6 decimal digits.
String getSimOperatorName()
Returns the Service Provider Name (SPN).
String getSimSerialNumber()
Returns the serial number of the SIM, if applicable. Return null if it is unavailable.
String getSimState()
Returns the state of the device SIM card.
String getSubscriberId()
Returns the unique subscriber ID, for example, the IMSI for a GSM phone. Return null if it is unavailable.
String getVoiceMailAlphaTag()
Retrieves the alphabetic identifier associated with the voice mail number.
String getVoiceMailNumber()
Returns the voice mail number. Return null if it is unavailable.
Boolean checkNetworkRoaming()
Returns true if the device is considered roaming on the current network, for GSM purposes.
String getDeviceId()
Returns the unique device ID, for example, the IMEI for GSM and the MEID for CDMA phones. Return null if device ID is not available.
String getDeviceSoftwareVersion()
Returns the software version number for the device, for example, the IMEI/SV for GSM phones. Return null if the software version is not available.
String getLine1Number()
Returns the phone number string for line 1, for example, the MSISDN for a GSM phone. Return null if it is unavailable.
List<NeighboringCellInfo> getNeighboringCellInfo()
Returns the neighboring cell information of the device.
Map<String, String> getLaunchableApplications()
Returns a list of all launchable application class names.
void launch(String className)
Start activity with the given class name.
List<String> getRunningPackages()
Returns a list of packages running activities or services.
Returns List of packages running activities.
void forceStopPackage( String packageName)
Force stops a package.
Boolean bluetoothMapClientConnect( String device)
Connect to an MAP MSE device.
Boolean mapSendMessage( String deviceID, String[] phoneNumbers, String message)
Send a (text) message via bluetooth.
Boolean bluetoothMapClientIsReady()
Is Map profile ready.
Boolean bluetoothMapClientDisconnect( String deviceID)
Disconnect an MAP device.
List<BluetoothDevice> bluetoothMapClientGetConnectedDevices()
Get all the devices connected through MAP.
Integer bleGenBleAdvertiseCallback()
Generate a new myAdvertisement Object
Integer bleBuildAdvertiseData()
Constructs a new Builder obj for AdvertiseData and returns its index
Integer bleBuildAdvertiseSettings()
Constructs a new Builder obj for AdvertiseData and returns its index
void bleStopBleAdvertising( Integer index)
Stops an ongoing ble advertisement
void bleStartBleAdvertising( Integer callbackIndex, Integer dataIndex, Integer settingsIndex )
Starts ble advertisement
void bleStartBleAdvertisingWithScanResponse( Integer callbackIndex, Integer dataIndex, Integer settingsIndex, Integer scanResponseIndex )
Starts ble advertisement
int bleGetAdvertiseSettingsMode( Integer index)
Get ble advertisement settings mode
int bleGetAdvertiseSettingsTxPowerLevel( Integer index)
Get ble advertisement settings tx power level
boolean bleGetAdvertiseSettingsIsConnectable( Integer index)
Get ble advertisement settings isConnectable value
Boolean bleGetAdvertiseDataIncludeTxPowerLevel( Integer index)
Get ble advertisement data include tx power level
byte[] bleGetAdvertiseDataManufacturerSpecificData( Integer index, Integer manufacturerId)
Get ble advertisement data manufacturer specific data
Boolean bleGetAdvertiseDataIncludeDeviceName( Integer index)
Get ble advertisement include device name
byte[] bleGetAdvertiseDataServiceData( Integer index, String serviceUuid)
Get ble advertisement Service Data
List<ParcelUuid> bleGetAdvertiseDataServiceUuids( Integer index)
Get ble advertisement Service Uuids
void bleSetAdvertiseDataSetServiceUuids( String[] uuidList )
Set ble advertisement data service uuids
void bleAddAdvertiseDataServiceData( String serviceDataUuid, byte[] serviceData )
Set ble advertise data service uuids
void bleAddAdvertiseDataManufacturerId( Integer manufacturerId, byte[] manufacturerSpecificData )
Set ble advertise data manufacturerId
void bleSetAdvertiseSettingsAdvertiseMode( Integer advertiseMode )
Set ble advertise settings advertise mode
void bleSetAdvertiseSettingsTxPowerLevel( Integer txPowerLevel )
Set ble advertise settings tx power level
void bleSetAdvertiseSettingsIsConnectable( Boolean value )
Set ble advertise settings isConnectable value
void bleSetAdvertiseDataIncludeTxPowerLevel( Boolean includeTxPowerLevel )
Set ble advertisement data include tx power level
void bleSetAdvertiseSettingsTimeout( Integer timeoutSeconds )
Set ble advertisement data include tx power level
void bleSetAdvertiseDataIncludeDeviceName( Boolean includeDeviceName )
Set ble advertisement data include device name
void bluetoothRfcommBeginConnectThread( String address, String uuid)
Begins a thread initiate an Rfcomm connection over Bluetooth.
void bluetoothRfcommKillConnThread()
Kill thread
void bluetoothRfcommEndConnectThread()
Close an active Rfcomm Client socket
void bluetoothRfcommEndAcceptThread()
Close an active Rfcomm Server socket
Map<String, String> bluetoothRfcommActiveConnections()
Returns active Bluetooth connections.
String bluetoothRfcommGetConnectedDeviceName( String connID)
Returns the name of the connected device.
void bluetoothRfcommBeginAcceptThread( String uuid, Integer timeout)
Begins a thread to accept an Rfcomm connection over Bluetooth.
void bluetoothRfcommWrite(String ascii, String connID)
Sends ASCII characters over the currently open Bluetooth connection.
String bluetoothRfcommRead( Integer bufferSize, String connID)
Read up to bufferSize ASCII characters.
void bluetoothRfcommWriteBinary( String base64, String connID)
Send bytes over the currently open Bluetooth connection.
String bluetoothRfcommReadBinary( Integer bufferSize, String connID)
Read up to bufferSize bytes and return a chunked, base64 encoded string.
Boolean bluetoothRfcommReadReady( String connID)
Returns True if the next read is guaranteed not to block.
String bluetoothRfcommReadLine( String connID)
Read the next line.
void bluetoothRfcommStop( String connID)
Stops Bluetooth connection.
void recorderStartMicrophone(String targetPath)
Records audio from the microphone and saves it to the given location.
void recorderStartVideo(String targetPath, Integer duration, Integer videoSize)
Records video from the camera and saves it to the given location. \nDuration specifies the maximum duration of the recording session. \nIf duration is 0 this method will return and the recording will only be stopped \nwhen recorderStop is called or when a scripts exits. \nOtherwise it will block for the time period equal to the duration argument.\nvideoSize: 0=160x120, 1=320x240, 2=352x288, 3=640x480, 4=800x480.
void recorderCaptureVideo(String targetPath, Integer duration, Boolean recordAudio)
Records video (and optionally audio) from the camera and saves it to the given location. \nDuration specifies the maximum duration of the recording session. \nIf duration is not provided this method will return immediately and the recording will only be stopped \nwhen recorderStop is called or when a scripts exits. \nOtherwise it will block for the time period equal to the duration argument.
void recorderStop()
Stops a previously started recording.
void startInteractiveVideoRecording(final String path)
Starts the video capture application to record a video and saves it to the specified path.
Boolean bluetoothAvrcpIsReady()
Is Avrcp profile ready.
List<BluetoothDevice> bluetoothAvrcpGetConnectedDevices()
Get all the devices connected through AVRCP.
void bluetoothAvrcpDisconnect()
Close AVRCP connection.
Boolean bluetoothHfpClientIsReady()
Is HfpClient profile ready.
void bluetoothHfpClientSetPriority( String deviceStr, Integer priority)
Set priority of the profile
Integer bluetoothHfpClientGetPriority( String deviceStr)
Get priority of the profile
Boolean bluetoothHfpClientConnect( String deviceStr)
Connect to an HFP Client device.
Boolean bluetoothHfpClientDisconnect( String deviceStr)
Disconnect an HFP Client device.
List<BluetoothDevice> bluetoothHfpClientGetConnectedDevices()
Get all the devices connected through HFP Client.
Integer bluetoothHfpClientGetConnectionStatus( String deviceID)
Get the connection status of a device.
void eventClearBuffer()
Clears all events from the event buffer.
boolean eventRegisterForBroadcast( String category, Boolean enqueue)
Registers a listener for a new broadcast signal
void eventUnregisterForBroadcast(String category)
Stop listening for a broadcast signal
Set<String> eventGetBrodcastCategories()
Lists all the broadcast signals we are listening for
List<Event> eventPoll( Integer number_of_events)
Returns and removes the oldest n events (i.e. location or sensor update, etc.) from the event buffer.
Returns A List of Maps of event properties.
Event eventWaitFor( final String eventName, Integer timeout)
Blocks until an event with the supplied name occurs. The returned event is not removed from the buffer.
Returns Map of event properties.
Event eventWait( Integer timeout)
Blocks until an event occurs. The returned event is removed from the buffer.
Returns Map of event properties.
void eventPost( String name, String data, Boolean enqueue)
Post an event to the event queue.
void rpcPostEvent(String name, String data)
Post an event to the event queue.
Event receiveEvent()
Returns and removes the oldest event (i.e. location or sensor update, etc.) from the event buffer.
Returns Map of event properties.
Event waitForEvent( final String eventName, Integer timeout)
Blocks until an event with the supplied name occurs. The returned event is not removed from the buffer.
Returns Map of event properties.
int startEventDispatcher( Integer port)
Opens up a socket where you can read for events posted
void stopEventDispatcher()
Stops the event server, you can't read in the port anymore
void ttsSpeak(String message)
Speaks the provided message via TTS.
int gattClientConnectGatt( Integer index, String macAddress, Boolean autoConnect, Integer transport )
Create a gatt connection
boolean gattClientDiscoverServices( Integer index )
Trigger discovering of services on the BluetoothGatt object
List<BluetoothGattService> gattClientGetServices( Integer index )
Get the services from the BluetoothGatt object
void gattClientAbortReliableWrite( Integer index )
Abort reliable write of a bluetooth gatt
boolean gattClientBeginReliableWrite( Integer index )
Begin reliable write of a bluetooth gatt
boolean gattClientRequestMtu( Integer index, Integer mtu )
true, if the new MTU value has been requested successfully
void gattClientDisconnect( Integer index )
Disconnect a bluetooth gatt
void gattClientClose( Integer index)
Close a Bluetooth GATT object
boolean gattExecuteReliableWrite( Integer index )
Execute reliable write on a bluetooth gatt
List<BluetoothDevice> gattClientGetConnectedDevices( Integer index )
Get a list of Bluetooth Devices connnected to the bluetooth gatt
BluetoothDevice gattGetDevice( Integer index )
Get the remote bluetooth device this GATT client targets to
List<BluetoothDevice> gattClientGetDevicesMatchingConnectionStates( Integer index, int[] states )
Get the bluetooth devices matching input connection states
ArrayList<String> gattClientGetServiceUuidList( Integer index )
Get the service from an input UUID
boolean gattClientReadCharacteristic( Integer gattIndex, Integer discoveredServiceListIndex, Integer serviceIndex, String characteristicUuid)
Reads the requested characteristic from the associated remote device.
boolean gattClientReadDescriptor( Integer gattIndex, Integer discoveredServiceListIndex, Integer serviceIndex, String characteristicUuid, String descriptorUuid)
Reads the value for a given descriptor from the associated remote device
boolean gattClientWriteDescriptor( Integer gattIndex, Integer discoveredServiceListIndex, Integer serviceIndex, String characteristicUuid, String descriptorUuid)
Write the value of a given descriptor to the associated remote device
boolean gattClientDescriptorSetValue( Integer gattIndex, Integer discoveredServiceListIndex, Integer serviceIndex, String characteristicUuid, String descriptorUuid, String value)
Write the value of a given descriptor to the associated remote device
boolean gattClientWriteCharacteristic( Integer gattIndex, Integer discoveredServiceListIndex, Integer serviceIndex, String characteristicUuid)
Write the value of a given characteristic to the associated remote device
boolean gattClientCharacteristicSetValue( Integer gattIndex, Integer discoveredServiceListIndex, Integer serviceIndex, String characteristicUuid, String value)
Write the value of a given characteristic to the associated remote device
boolean gattClientCharacteristicSetWriteType( Integer gattIndex, Integer discoveredServiceListIndex, Integer serviceIndex, String characteristicUuid, Integer writeType)
Set write type of a given characteristic to the associated remote device
boolean gattClientReadRSSI( Integer index )
Read the RSSI for a connected remote device
boolean gattClientRefresh( Integer index )
Clears the internal cache and forces a refresh of the services from the remote device
boolean gattClientRequestConnectionPriority( Integer index, Integer connectionPriority )
Request a connection parameter update. from the Bluetooth Gatt
boolean gattClientSetCharacteristicNotification( Integer gattIndex, Integer discoveredServiceListIndex, Integer serviceIndex, String characteristicUuid, Boolean enable )
Sets the characteristic notification of a bluetooth gatt
Integer gattCreateGattCallback()
Create a new GattCallback object
int gattClientGetDiscoveredServicesCount( Integer index )
Get Bluetooth Gatt Services
String gattClientGetDiscoveredServiceUuid( Integer index, Integer serviceIndex )
Get Bluetooth Gatt Service Uuid
ArrayList<String> gattClientGetDiscoveredCharacteristicUuids( Integer index, Integer serviceIndex )
Get Bluetooth Gatt Services
ArrayList<String> gattClientGetDiscoveredDescriptorUuids ( Integer index, Integer serviceIndex, String characteristicUuid )
Get Bluetooth Gatt Services
Integer setScreenTimeout(Integer value)
Sets the screen timeout to this number of seconds.
Returns The original screen timeout.
Integer getScreenTimeout()
Returns the current screen timeout in seconds.
Returns the current screen timeout in seconds.
Boolean checkAirplaneMode()
Checks the airplane mode setting.
Returns True if airplane mode is enabled.
Boolean toggleAirplaneMode(Boolean enabled)
Toggles airplane mode on and off.
Returns True if airplane mode is enabled.
Boolean checkRingerSilentMode()
Checks the ringer silent mode setting.
Returns True if ringer silent mode is enabled.
Boolean toggleRingerSilentMode(Boolean enabled)
Toggles ringer silent mode on and off.
Returns True if ringer silent mode is enabled.
Boolean toggleVibrateMode(Boolean enabled, Boolean ringer)
Toggles vibrate mode on and off. If ringer=true then set Ringer setting, else set Notification setting
Returns True if vibrate mode is enabled.
Boolean getVibrateMode(Boolean ringer)
Checks Vibration setting. If ringer=true then query Ringer setting, else query Notification setting
Returns True if vibrate mode is enabled.
int getMaxRingerVolume()
Returns the maximum ringer volume.
int getRingerVolume()
Returns the current ringer volume.
void setRingerVolume(Integer volume)
Sets the ringer volume.
int getMaxMediaVolume()
Returns the maximum media volume.
int getMediaVolume()
Returns the current media volume.
void setMediaVolume(Integer volume)
Sets the media volume.
Integer getScreenBrightness()
Returns the screen backlight brightness.
Returns the current screen brightness between 0 and 255
Integer setScreenBrightness( Integer value)
Sets the the screen backlight brightness.
Returns the original screen brightness.
Boolean checkScreenOn()
Checks if the screen is on or off (requires API level 7).
Returns True if the screen is currently on.
void wakeLockAcquireFull()
Acquires a full wake lock (CPU on, screen bright, keyboard bright).
void wakeLockAcquirePartial()
Acquires a partial wake lock (CPU on).
void wakeLockAcquireBright()
Acquires a bright wake lock (CPU on, screen bright).
void wakeLockAcquireDim()
Acquires a dim wake lock (CPU on, screen dim).
void wakeLockRelease()
Releases the wake lock.
void setResultBoolean( Integer resultCode, Boolean resultValue)
sRpcDescription
void setResultByte( Integer resultCode, Byte resultValue)
sRpcDescription
void setResultShort( Integer resultCode, Short resultValue)
sRpcDescription
void setResultChar( Integer resultCode, Character resultValue)
sRpcDescription
void setResultInteger( Integer resultCode, Integer resultValue)
sRpcDescription
void setResultLong( Integer resultCode, Long resultValue)
sRpcDescription
void setResultFloat( Integer resultCode, Float resultValue)
sRpcDescription
void setResultDouble( Integer resultCode, Double resultValue)
sRpcDescription
void setResultString( Integer resultCode, String resultValue)
sRpcDescription
void setResultBooleanArray( Integer resultCode, Boolean[] resultValue)
sRpcDescription
void setResultByteArray( Integer resultCode, Byte[] resultValue)
sRpcDescription
void setResultShortArray( Integer resultCode, Short[] resultValue)
sRpcDescription
void setResultCharArray( Integer resultCode, Character[] resultValue)
sRpcDescription
void setResultIntegerArray( Integer resultCode, Integer[] resultValue)
sRpcDescription
void setResultLongArray( Integer resultCode, Long[] resultValue)
sRpcDescription
void setResultFloatArray( Integer resultCode, Float[] resultValue)
sRpcDescription
void setResultDoubleArray( Integer resultCode, Double[] resultValue)
sRpcDescription
void setResultStringArray( Integer resultCode, String[] resultValue)
sRpcDescription
void setResultSerializable( Integer resultCode, Serializable resultValue)
sRpcDescription
Map<String, String> usbserialGetDeviceList()
Returns USB devices reported by USB Host API.
Returns "Map of id and string information '
void usbserialDisconnect( String connID )
Disconnect all USB-device.
Map<String, String> usbserialActiveConnections()
Returns active USB-device connections.
Returns "Active USB-device connections by Map UUID vs device-name."
void usbserialWriteBinary( String base64, String connID)
Send bytes over the currently open USB Serial connection.
String usbserialReadBinary( Integer bufferSize, String connID)
Read up to bufferSize bytes and return a chunked, base64 encoded string.
String usbserialConnect( String hash, String options)
Connect to a device with USB-Host. request the connection and exit.
Returns messages the request status.
Boolean usbserialHostEnable()
Requests that the host be enable for USB Serial connections.
Returns "True if the USB Device is accesible
void usbserialWrite(String ascii, String connID)
Sends ASCII characters over the currently open USB Serial connection.
Boolean usbserialReadReady( String connID)
Returns True if the next read is guaranteed not to block.
String usbserialRead( String connID, Integer bufferSize)
Read up to bufferSize ASCII characters.
String usbserialGetDeviceName( String connID)
Queries a remote device for it's name or null if it can't be resolved
Object prefGetValue( String key, String filename)
Read a value from shared preferences
void prefPutValue( String key, Object value, String filename)
Write a value to shared preferences
Map<String, ?> prefGetAll( String filename)
Get list of Shared Preference Values
Returns Map of key,value
String recognizeSpeech( final String prompt, final String language, final String languageModel)
Recognizes user's speech and returns the most likely result.
Returns An empty string in case the speech cannot be recongnized.
void generateDtmfTones( String phoneNumber, Integer toneDuration)
Generate DTMF tones for the given phone number.
Boolean bluetoothHspIsReady()
Is Hsp profile ready.
void bluetoothHspSetPriority( String deviceStr, Integer priority)
Set priority of the profile
Boolean bluetoothHspConnect( String device)
Connect to an HSP device.
Boolean bluetoothHspDisconnect( String device)
Disconnect an HSP device.
List<BluetoothDevice> bluetoothHspGetConnectedDevices()
Get all the devices connected through HSP.
Integer bluetoothHspGetConnectionStatus( String deviceID)
Get the connection status of a device.
Boolean bluetoothHidIsReady()
Is Hid profile ready.
Boolean bluetoothHidConnect( String device)
Connect to an HID device.
Boolean bluetoothHidDisconnect( String device)
Disconnect an HID device.
List<BluetoothDevice> bluetoothHidGetConnectedDevices()
Get all the devices connected through HID.
Integer bluetoothHidGetConnectionStatus( String deviceID)
Get the connection status of a device.
Boolean bluetoothHidSetReport( String deviceID, String type, String report)
Send Set_Report command to the connected HID input device.
Boolean bluetoothHidGetReport( String deviceID, String type, String reportId, Integer buffSize)
Send Get_Report command to the connected HID input device.
Boolean bluetoothHidSendData( String deviceID, String report)
Send data to a connected HID device.
Boolean bluetoothHidVirtualUnplug( String deviceID)
Send virtual unplug to a connected HID device.
byte[] testByte()
Test byte transfer.
Boolean bluetoothA2dpIsReady()
Is A2dp profile ready.
void bluetoothA2dpSetPriority( String deviceStr, Integer priority)
Set priority of the profile
Boolean bluetoothA2dpConnect( String deviceID)
Connect to an A2DP device.
Boolean bluetoothA2dpDisconnect( String deviceID)
Disconnect an A2DP device.
List<BluetoothDevice> bluetoothA2dpGetConnectedDevices()
Get all the devices connected through A2DP.
void startTrackingSignalStrengths()
Starts tracking signal strengths.
Bundle readSignalStrengths()
Returns the current signal strengths.
Returns A map of \"gsm_signal_strength\"
void stopTrackingSignalStrengths()
Stops tracking signal strength.
Map<String, String> bluetoothActiveConnections()
Returns active Bluetooth connections.
void bluetoothWriteBinary( String base64, String connID)
Send bytes over the currently open Bluetooth connection.
String bluetoothReadBinary( Integer bufferSize, String connID)
Read up to bufferSize bytes and return a chunked, base64 encoded string.
String bluetoothConnect( String uuid, String address)
Connect to a device over Bluetooth. Blocks until the connection is established or fails.
Returns True if the connection was established successfully.
String bluetoothAccept( String uuid, Integer timeout)
Listens for and accepts a Bluetooth connection. Blocks until the connection is established or fails.
void bluetoothMakeDiscoverable( Integer duration)
Requests that the device be discoverable for Bluetooth connections.
void bluetoothWrite(String ascii, String connID)
Sends ASCII characters over the currently open Bluetooth connection.
Boolean bluetoothReadReady( String connID)
Returns True if the next read is guaranteed not to block.
String bluetoothRead( Integer bufferSize, String connID)
Read up to bufferSize ASCII characters.
String bluetoothReadLine( String connID)
Read the next line.
String bluetoothGetRemoteDeviceName( String address)
Queries a remote device for it's name or null if it can't be resolved
String bluetoothGetLocalName()
Gets the Bluetooth Visible device name
boolean bluetoothSetLocalName( String name)
Sets the Bluetooth Visible device name, returns True on success
int bluetoothGetScanMode()
Gets the scan mode for the local dongle.\r\nReturn values:\r\n\t-1 when Bluetooth is disabled.\r\n\t0 if non discoverable and non connectable.\r\n\r1 connectable non discoverable.\r3 connectable and discoverable.
String bluetoothGetConnectedDeviceName( String connID)
Returns the name of the connected device.
Boolean checkBluetoothState()
Checks Bluetooth state.
Returns True if Bluetooth is enabled.
Boolean toggleBluetoothState( Boolean enabled, Boolean prompt)
Toggle Bluetooth on and off.
Returns True if Bluetooth is enabled.
void bluetoothStop( String connID)
Stops Bluetooth connection.
String bluetoothGetLocalAddress()
Returns the hardware address of the local Bluetooth adapter.
Boolean bluetoothDiscoveryStart()
Start the remote device discovery process.
Returns true on success, false on error
Boolean bluetoothDiscoveryCancel()
Cancel the current device discovery process.
Returns true on success, false on error
Boolean bluetoothIsDiscovering()
Return true if the local Bluetooth adapter is currently in the device discovery process.
void bluetoothA2dpSinkSetPriority( String deviceStr, Integer priority)
Set priority of the profile
Integer bluetoothA2dpSinkGetPriority( String deviceStr)
get priority of the profile
Boolean bluetoothA2dpSinkIsReady()
Is A2dpSink profile ready.
Boolean bluetoothA2dpSinkConnect( String deviceStr)
Connect to an A2DP Sink device.
Boolean bluetoothA2dpSinkDisconnect( String deviceStr)
Disconnect an A2DP Sink device.
List<BluetoothDevice> bluetoothA2dpSinkGetConnectedDevices()
Get all the devices connected through A2DP Sink.
Integer bluetoothA2dpSinkGetConnectionStatus( String deviceID)
Get the connection status of a device.
List<String> locationProviders()
Returns availables providers on the phone
boolean locationProviderEnabled( String provider)
Ask if provider is enabled
void startLocating( Integer minUpdateTime, Integer minUpdateDistance)
Starts collecting location data.
Map<String, Location> readLocation()
Returns the current location as indicated by all available providers.
Returns A map of location information by provider.
void stopLocating()
Stops collecting location data.
Map<String, Location> getLastKnownLocation()
Returns the last known location of the device.
Returns A map of location information by provider.
List<Address> geocode( Double latitude, Double longitude, Integer maxResults)
Returns a list of addresses for the given latitude and longitude.
Returns A list of addresses.
void bluetoothMakeConnectable()
Requests that the device be made connectable.
Map<String, String> bluetoothActiveConnections()
Returns active Bluetooth connections.
void bluetoothWriteBinary( String base64, String connID)
Send bytes over the currently open Bluetooth connection.
String bluetoothReadBinary( Integer bufferSize, String connID)
Read up to bufferSize bytes and return a chunked, base64 encoded string.
String bluetoothConnect( String uuid, String address)
Connect to a device over Bluetooth. Blocks until the connection is established or fails.
Returns True if the connection was established successfully.
String bluetoothAccept( String uuid, Integer timeout)
Listens for and accepts a Bluetooth connection. Blocks until the connection is established or fails.
void bluetoothMakeDiscoverable( Integer duration)
Requests that the device be discoverable for Bluetooth connections.
void bluetoothWrite(String ascii, String connID)
Sends ASCII characters over the currently open Bluetooth connection.
Boolean bluetoothReadReady( String connID)
Returns True if the next read is guaranteed not to block.
String bluetoothRead( Integer bufferSize, String connID)
Read up to bufferSize ASCII characters.
String bluetoothReadLine( String connID)
Read the next line.
void bluetoothMakeUndiscoverable()
Requests that the device be not discoverable.
String bluetoothGetRemoteDeviceName( String address)
Queries a remote device for it's name or null if it can't be resolved
String bluetoothGetLocalName()
Get local Bluetooth device name
boolean bluetoothSetLocalName( String name)
Sets the Bluetooth visible device name
Returns true on success
int bluetoothGetScanMode()
Gets the scan mode for the local dongle.\r\nReturn values:\r\n\t-1 when Bluetooth is disabled.\r\n\t0 if non discoverable and non connectable.\r\n\r1 connectable non discoverable.\r3 connectable and discoverable.
String bluetoothGetConnectedDeviceName( String connID)
Returns the name of the connected device.
Boolean checkBluetoothState()
Checks Bluetooth state.
Returns True if Bluetooth is enabled.
boolean bluetoothFactoryReset()
Factory reset bluetooth settings.
Returns True if successful.
Boolean toggleBluetoothState( Boolean enabled, Boolean prompt)
Toggle Bluetooth on and off.
Returns True if Bluetooth is enabled.
void bluetoothStop( String connID)
Stops Bluetooth connection.
String bluetoothGetLocalAddress()
Returns the hardware address of the local Bluetooth adapter.
Boolean bluetoothDiscoveryStart()
Start the remote device discovery process.
Returns true on success, false on error
Boolean bluetoothDiscoveryCancel()
Cancel the current device discovery process.
Returns true on success, false on error
Boolean bluetoothIsDiscovering()
If the local Bluetooth adapter is currentlyin the device discovery process.
Collection<BluetoothDevice> bluetoothGetDiscoveredDevices()
Get all the discovered bluetooth devices.
boolean bluetoothConfigHciSnoopLog( Boolean value )
Enable or disable the Bluetooth HCI snoop log
String bluetoothGetControllerActivityEnergyInfo( Integer value )
Get Bluetooth controller activity energy info.
boolean bluetoothIsHardwareTrackingFiltersAvailable()
Return true if hardware has entriesavailable for matching beacons.
int bluetoothGetLeState()
Gets the current state of LE.
boolean bluetoothEnableBLE()
Enables BLE functionalities.
boolean bluetoothDisableBLE()
Disables BLE functionalities.
boolean bluetoothListenForBleStateChange()
Listen for a Bluetooth LE State Change.
boolean bluetoothStopListeningForBleStateChange()
Stop Listening for a Bluetooth LE State Change.
boolean bluetoothStartListeningForAdapterStateChange()
Listen for Bluetooth State Changes.
boolean bluetoothStopListeningForAdapterStateChange()
Stop Listening for Bluetooth State Changes.
void setClipboard(String text)
Put text in the clipboard.
String getClipboard()
Read text from the clipboard.
Returns The text in the clipboard.
Intent startActivityForResult( String action, String uri, String type, JSONObject extras, String packagename, String classname)
Starts an activity and returns the result.
Returns A Map representation of the result Intent.
Intent startActivityForResultIntent( Intent intent)
Starts an activity and returns the result.
Returns A Map representation of the result Intent.
void startActivity( String action, String uri, String type, JSONObject extras, Boolean wait, String packagename, String classname)
Starts an activity.
void sendBroadcast( String action, String uri, String type, JSONObject extras, String packagename, String classname)
Send a broadcast.
Intent makeIntent( String action, String uri, String type, JSONObject extras, JSONArray categories, String packagename, String classname, Integer flags)
Create an Intent.
Returns An object representing an Intent
void startActivityIntent( Intent intent, Boolean wait)
Start Activity using Intent
void sendBroadcastIntent( Intent intent)
Send Broadcast Intent
void vibrate( Integer duration)
Vibrates the phone or a specified duration in milliseconds.
void makeToast(final String message)
Displays a short-duration Toast notification.
String getInput( final String title, final String message)
Queries the user for a text input.
String getPassword( final String title, final String message)
Queries the user for a password.
void notify(String title, String message)
Displays a notification that will be canceled when the user clicks on it.
Object getIntent()
Returns the intent that launched the script.
void sendEmail( final String to, final String subject, final String body, final String attachmentUri)
Launches an activity that sends an e-mail message to a given recipient.
int getPackageVersionCode(final String packageName)
Returns package version code.
String getPackageVersion(final String packageName)
Returns package version name.
boolean requiredVersion(final Integer version)
Checks if version of SL4A is greater than or equal to the specified version.
void log(String message)
Writes message to logcat.
Map<String, Object> environment()
A map of various useful environment details
Bundle getConstants( String classname)
Get list of constants (static final fields) for a class
void startSensingTimed( Integer sensorNumber, Integer delayTime)
Starts recording sensor data to be available for polling.
void startSensingThreshold( Integer sensorNumber, Integer threshold, Integer axis)
Records to the Event Queue sensor data exceeding a chosen threshold.
Bundle readSensors()
Returns the most recently recorded sensor data.
void stopSensing()
Stops collecting sensor data.
Integer sensorsGetAccuracy()
Returns the most recently received accuracy value.
Float sensorsGetLight()
Returns the most recently received light value.
List<Float> sensorsReadAccelerometer()
Returns the most recently received accelerometer values.
Returns a List of Floats [(acceleration on the) X axis, Y axis, Z axis].
List<Float> sensorsReadMagnetometer()
Returns the most recently received magnetic field values.
Returns a List of Floats [(magnetic field value for) X axis, Y axis, Z axis].
List<Double> sensorsReadOrientation()
Returns the most recently received orientation values.
Returns a List of Doubles [azimuth, pitch, roll].
void startSensing( Integer sampleSize)
Starts recording sensor data to be available for polling.
Integer wifiAddNetwork(JSONObject wifiConfig)
Add a network.
Boolean wifiConnect(JSONObject config)
Connects a wifi network by ssid
Returns True if the operation succeeded.
Boolean wifiEnableNetwork(Integer netId, Boolean disableOthers)
Enable a configured network. Initiate a connection if disableOthers is true
Returns True if the operation succeeded.
void wifiEnterpriseConnect(JSONObject config)
Connect to a wifi network that uses Enterprise authentication methods.
List<ScanResult> wifiGetScanResults()
Returns the list of access points found during the most recent Wifi scan.
void wifiLockAcquireFull()
Acquires a full Wifi lock.
void wifiLockAcquireScanOnly()
Acquires a scan only Wifi lock.
void wifiLockRelease()
Releases a previously acquired Wifi lock.
Boolean wifiStartScan()
Starts a scan for Wifi access points.
Returns True if the scan was initiated successfully.
Boolean checkWifiState()
Checks Wifi state.
Returns True if Wifi is enabled.
Boolean toggleWifiState(Boolean enabled)
Toggle Wifi on and off.
Returns True if Wifi is enabled.
Boolean wifiDisconnect()
Disconnects from the currently active access point.
Returns True if the operation succeeded.
WifiInfo wifiGetConnectionInfo()
Returns information about the currently active access point.
Boolean wifiReassociate()
Reassociates with the currently active access point.
Returns True if the operation succeeded.
Boolean wifiReconnect()
Reconnects to the currently active access point.
Returns True if the operation succeeded.
boolean mediaPlay( String url, String tag, Boolean play)
Open a media file
Returns true if play successful
boolean mediaPlayPause( String tag)
pause playing media file
Returns true if successful
boolean mediaPlayStart( String tag)
start playing media file
Returns true if successful
boolean mediaPlayClose( String tag)
Close media file
Returns true if successful
boolean mediaIsPlaying( String tag)
Checks if media file is playing.
Returns true if playing
Map<String, Object> mediaPlayInfo( String tag)
Information on current media
Returns Media Information
Set<String> mediaPlayList()
Lists currently loaded media
Returns List of Media Tags
boolean mediaPlaySetLooping( Boolean enabled, String tag)
Set Looping
Returns True if successful
int mediaPlaySeek( Integer msec, String tag)
Seek To Position
Returns New Position (in ms)
Intent contactsDisplayContactPickList()
Displays a list of contacts to pick from.
Returns "A map of result values."
String contactsDisplayPhonePickList()
Displays a list of phone numbers to pick from.
Returns "The selected phone number."
List<String> contactsGetAttributes()
Returns a List of all possible attributes for contacts.
List<Integer> contactsGetContactIds()
Returns a List of all contact IDs.
List<JSONObject> contactsGetAllContacts( JSONArray attributes)
Returns a List of all contacts.
Returns a List of contacts as Maps
JSONObject contactsGetContactById( Integer id, JSONArray attributes)
Returns contacts by ID.
Integer contactsGetCount()
Returns the number of contacts.
void contactsEraseAll()
Erase all contacts in phone book.
List<JSONObject> contactsQueryContent( String uri, JSONArray attributes, String selection, JSONArray selectionArgs, String order)
Content Resolver Query
Returns result of query as Maps
JSONArray queryAttributes( String uri)
Content Resolver Query Attributes
Returns "a list of available columns for a given content uri"
void importVcf( String uri)
Launches VCF import.
void exportVcf( String path)
Launches VCF export.
void ttsSpeak(String message)
Speaks the provided message via TTS.
Boolean ttsIsSpeaking()
Returns True if speech is currently in progress.
void setTtsPitch(String pitch)
Changes the pitch of TTS speech.
void bluetoothPanSetBluetoothTethering( Boolean enable)
Set Bluetooth Tethering
Boolean bluetoothPanIsReady()
Is Pan profile ready.
List<BluetoothDevice> bluetoothPanGetConnectedDevices()
Get all the devices connected through PAN
Boolean bluetoothPanIsTetheringOn()
Is tethering on.
InetSocketAddress webcamStart( Integer resolutionLevel, Integer jpegQuality, Integer port)
Starts an MJPEG stream and returns a Tuple of address and port for the stream.
void webcamAdjustQuality( Integer resolutionLevel, Integer jpegQuality)
Adjusts the quality of the webcam stream while it is running.
void webcamStop()
Stops the webcam stream.
boolean cameraStartPreview( Integer resolutionLevel, Integer jpegQuality, String filepath)
Start Preview Mode. Throws 'preview' events.
Returns True if successful
void cameraStopPreview()
Stop the preview mode.