Module: Rho
- Defined in:
- lib/framework/rho/rhomsg.rb,
lib/test/rho_stubs.rb,
lib/framework/rho/rho.rb,
lib/extensions/nfc/nfc.rb,
lib/framework/rho/render.rb,
lib/framework/rho/rhoerror.rb,
lib/framework/rho/rhoevent.rb,
lib/framework/rho/rhoutils.rb,
lib/framework/rhoframework.rb,
lib/framework/rho/rhotabbar.rb,
lib/framework/rho/rhocontact.rb,
lib/framework/rho/rhoevent_c.rb,
lib/framework/rho/rhosupport.rb,
lib/framework/rho/rhotoolbar.rb,
lib/framework/rhoappmanifest.rb,
lib/framework/rho/rhoevent_bb.rb,
lib/framework/autocomplete/Rho.rb,
lib/framework/rho/rhobluetooth.rb,
lib/framework/rho/rhocontroller.rb,
lib/framework/rholang/rhomsg_de.rb,
lib/framework/rholang/rhomsg_en.rb,
lib/framework/rholang/rhomsg_es.rb,
lib/framework/rholang/rhomsg_it.rb,
lib/framework/rho/rhoapplication.rb,
lib/framework/rho/rhoapplication.rb,
lib/framework/rho/rhoviewhelpers.rb,
lib/commonAPI/coreapi/RhoTimerApi.rb,
lib/framework/rholang/rhoerror_de.rb,
lib/framework/rholang/rhoerror_en.rb,
lib/framework/rholang/rhoerror_es.rb,
lib/commonAPI/coreapi/RhoNetworkApi.rb,
lib/framework/newrhom/newrhom_model.rb,
lib/commonAPI/coreapi/RhoDatabaseApi.rb,
lib/framework/rho/rhonativeviewmanager.rb,
lib/commonAPI/coreapi/RhoApplicationApi.rb,
lib/commonAPI/coreapi/RhoApplicationApi.rb,
lib/commonAPI/coreapi/RhoNativeTabbarApi.rb,
lib/extensions/rholang/rholang/rhomsg_ru.rb,
lib/commonAPI/coreapi/RhoNativeMenubarApi.rb,
lib/commonAPI/coreapi/RhoNativeToolbarApi.rb,
lib/extensions/rholang/rholang/rhoerror_ru.rb,
lib/framework/rholang/localization_simplified.rb,
lib/framework/rholang/localization_simplified.rb
Overview
Defined Under Namespace
Modules: AsyncHttp, Calendar, NumberHelper, RhoEvent, RhoSupport, RhoTimer, RingtoneManager, SignatureCapture
Classes: AppManifest, Application, BluetoothManager, BluetoothSession, Database, JSON, NFCManager, NFCTag, NFCTagTechnology, NFCTagTechnology_IsoDep, NFCTagTechnology_MifareClassic, NFCTagTechnology_MifareUltralight, NFCTagTechnology_Ndef, NFCTagTechnology_NdefFormatable, NFCTagTechnology_NfcA, NFCTagTechnology_NfcB, NFCTagTechnology_NfcF, NFCTagTechnology_NfcV, NativeMenubar, NativeTabbar, NativeToolbar, NativeView, NativeViewManager, NdefMessage, NdefRecord, NewORMModel, RHO, RhoApplication, RhoConfig, RhoContact, RhoController, RhoError, RhoFSConnector, RhoMessages, RhoUtils, System, Timer
Class Method Summary
collapse
Class Method Details
.close_database(arg_partition) ⇒ Object
42
43
44
45
46
47
48
49
50
51
52
|
# File 'lib/framework/rho/rho.rb', line 42
def self.close_database(arg_partition=nil)
if arg_partition
puts "Close database for partition: #{arg_partition}"
::Rho::RHO.get_db_partitions()[arg_partition].close
else
::Rho::RHO.get_db_partitions().each do |partition, db|
puts "Close database for partition: #{partition}"
db.close
end
end
end
|
.file_exist?(fname) ⇒ Boolean
65
66
67
68
69
|
# File 'lib/framework/rhoframework.rb', line 65
def self.file_exist?(fname)
return File.exist_injar?(fname) if defined? RHO_ME
File.exist?(fname)
end
|
33
34
35
|
# File 'lib/framework/rho/rho.rb', line 33
def self.get_app
RHO.get_instance().get_app('app')
end
|
.support_transitions? ⇒ Boolean
37
38
39
40
|
# File 'lib/framework/rho/rho.rb', line 37
def self.support_transitions?()
is_bb6 = System::get_property('platform') == 'Blackberry' && (System::get_property('os_version') =~ /^6\.0/)
System::get_property('platform') == 'APPLE' || System::get_property('platform') == 'ANDROID' || is_bb6
end
|