Class: Rho::NativeTabbar
- Defined in:
- lib/framework/rho/rhotabbar.rb,
lib/framework/autocomplete/Rho.rb,
lib/commonAPI/coreapi/RhoNativeTabbarApi.rb
Class Method Summary collapse
- .create(params, options = {}, callback = nil) ⇒ Object
- .create_orig ⇒ Object
- .create_vertical(params) ⇒ Object
- .get_current_tab ⇒ Object
- .remove ⇒ Object
- .set_tab_badge(tab_index, value) ⇒ Object
- .switch_tab(tab_index) ⇒ Object
Class Method Details
.create(params, options = {}, callback = nil) ⇒ Object
32 33 34 |
# File 'lib/framework/rho/rhotabbar.rb', line 32 def self.create(params) NativeBar.(Rho::RhoApplication::TABBAR_TYPE, params) end |
.create_orig ⇒ Object
9 10 11 |
# File 'lib/commonAPI/coreapi/RhoNativeTabbarApi.rb', line 9 def self.create(params) NativeBar.(Rho::RhoApplication::TABBAR_TYPE, params) end |
.create_vertical(params) ⇒ Object
36 37 38 |
# File 'lib/framework/rho/rhotabbar.rb', line 36 def self.create_vertical(params) NativeBar.(Rho::RhoApplication::VTABBAR_TYPE, params) end |
.get_current_tab ⇒ Object
52 53 54 55 56 57 58 59 |
# File 'lib/framework/rho/rhotabbar.rb', line 52 def self.get_current_tab webview = System::get_property('webview_framework') if System::get_property('platform') == 'APPLE' or System::get_property('platform') == 'ANDROID' or (!webview.nil? and webview.start_with?('WEBKIT')) return NativeBar. else return 0 end end |
.remove ⇒ Object
40 41 42 |
# File 'lib/framework/rho/rhotabbar.rb', line 40 def self.remove() NativeBar.() end |