Sha256: 089dcb67f65d73f191c80478125b50ee0290e1caea61e1ae808f6b209b9d89c1

Contents?: true

Size: 777 Bytes

Versions: 23

Compression:

Stored size: 777 Bytes

Contents

module Rho
 
class NativeTabbar
 
  def self.create(params)
    NativeBar.create_native_tabbar(Rho::RhoApplication::TABBAR_TYPE, params)
  end

  def self.create_vertical(params)
    NativeBar.create_native_tabbar(Rho::RhoApplication::VTABBAR_TYPE, params)
  end
 
  def self.remove()
    NativeBar.remove_native_tabbar()
  end
 
  def self.switch_tab(tab_index)
    NativeBar.native_tabbar_switch_tab(tab_index)
  end

  def self.set_tab_badge(tab_index, value)
    NativeBar.native_tabbar_set_tab_badge(tab_index, value)
  end

  def self.get_current_tab
      if System::get_property('platform') == 'APPLE' or System::get_property('platform') == 'ANDROID'
          return NativeBar.native_tabbar_get_current_tab
      else 
          return 0
      end
  end

end
 
 
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
rhodes-3.0.2 lib/framework/rho/rhotabbar.rb
rhodes-3.0.2.beta.1 lib/framework/rho/rhotabbar.rb
rhodes-3.0.1 lib/framework/rho/rhotabbar.rb
rhodes-3.0.1.beta.8 lib/framework/rho/rhotabbar.rb
rhodes-3.0.1.beta.7 lib/framework/rho/rhotabbar.rb
rhodes-3.0.1.beta.6 lib/framework/rho/rhotabbar.rb
rhodes-3.0.1.beta.5 lib/framework/rho/rhotabbar.rb
rhodes-3.0.1.beta.4 lib/framework/rho/rhotabbar.rb
rhodes-3.0.1.beta.3 lib/framework/rho/rhotabbar.rb
rhodes-3.0.1.beta.2 lib/framework/rho/rhotabbar.rb
rhodes-3.0.0 lib/framework/rho/rhotabbar.rb
rhodes-3.0.0.beta.7 lib/framework/rho/rhotabbar.rb
rhodes-3.0.0.beta.6 lib/framework/rho/rhotabbar.rb
rhodes-3.0.0.beta.5 lib/framework/rho/rhotabbar.rb
rhodes-3.0.0.beta.4 lib/framework/rho/rhotabbar.rb
rhodes-3.0.0.beta.3 lib/framework/rho/rhotabbar.rb
rhodes-3.0.0.beta.2 lib/framework/rho/rhotabbar.rb
rhodes-3.0.0.beta.1 lib/framework/rho/rhotabbar.rb
rhodes-2.4.1 lib/framework/rho/rhotabbar.rb
rhodes-2.4.1.beta.1 lib/framework/rho/rhotabbar.rb