Class: Rho::NativeViewManager
- Defined in:
- lib/framework/rho/rhonativeviewmanager.rb
Constant Summary collapse
- OPEN_IN_MODAL_FULL_SCREEN_WINDOW =
use constant as index in create_native_view() or in WebView.navigate() with native view prefix with this constant native view will open in separated modal topmost full screen window (not instead WebView in main window)
11111
Class Method Summary collapse
-
.create_native_view(view_type, tab_index, params = nil) ⇒ Object
make and return NativeView object view_type - string with registered native view type tab_index - tab index where native view will opened, can be OPEN_IN_MODAL_FULL_SCREEN_WINDOW params - HASH or another ruby type which will be transferred to native view with call create() this function execute NativeView fabric provided in native code and link native NativeView object received from fabric to Ruby NativeView object returned by this function.
Class Method Details
.create_native_view(view_type, tab_index, params = nil) ⇒ Object
make and return NativeView object view_type - string with registered native view type tab_index - tab index where native view will opened, can be OPEN_IN_MODAL_FULL_SCREEN_WINDOW params - HASH or another ruby type which will be transferred to native view with call create() this function execute NativeView fabric provided in native code and link native NativeView object received from fabric to Ruby NativeView object returned by this function
81 82 83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/framework/rho/rhonativeviewmanager.rb', line 81 def self.create_native_view(view_type, tab_index, params = nil) id = RhodesNativeViewManager.create_native_view(view_type, tab_index, params) if id < 0 puts "ERROR: NativeViewManager can not make NativeView with this parameters !" raise "ERROR: NativeViewManager can not make NativeView with this parameters !" return nil end c = NativeView.new(view_type, tab_index, id) if c == nil puts 'ERROR - Ruby NativeView object is NIL !' end return c end |