Class: Droiuby::Wrappers::Listeners::OnWebConsoleReadyListener

Inherits:
Object
  • Object
show all
Defined in:
lib/droiuby/wrappers/listeners/on_web_console_ready_listener.rb

Instance Method Summary collapse

Constructor Details

#initialize(execution_bundle, auto_wrap_block) ⇒ OnWebConsoleReadyListener

Returns a new instance of OnWebConsoleReadyListener.



6
7
8
9
# File 'lib/droiuby/wrappers/listeners/on_web_console_ready_listener.rb', line 6

def initialize(execution_bundle, auto_wrap_block)
  @auto_wrap_block = auto_wrap_block
  @native = Java::com.droiuby.wrappers::OnWebConsoleReadyRubyWrapper.new(execution_bundle, self)
end

Instance Method Details

#onReady(httpd) ⇒ Object



11
12
13
14
15
# File 'lib/droiuby/wrappers/listeners/on_web_console_ready_listener.rb', line 11

def onReady(httpd)
  on_ui_thread {
    @auto_wrap_block.call(httpd)
  }
end

#to_nativeObject



17
18
19
# File 'lib/droiuby/wrappers/listeners/on_web_console_ready_listener.rb', line 17

def to_native
  @native
end