Class: IntentWrapper

Inherits:
Object show all
Includes:
Droiuby::ViewHelper
Defined in:
lib/droiuby/wrappers/intent.rb

Instance Method Summary collapse

Methods included from Droiuby::ViewHelper

included

Constructor Details

#initialize(intent) ⇒ IntentWrapper

Returns a new instance of IntentWrapper.



9
10
11
12
13
14
15
# File 'lib/droiuby/wrappers/intent.rb', line 9

def initialize(intent)
  if (intent.nil?)
    @native = Java::android.content.Intent.new
  else
    @native = intent
  end
end

Instance Method Details

#get_string_extra(name) ⇒ Object



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

def get_string_extra(name)
  @native.getStringExtra(name)
end

#nativeObject



21
22
23
# File 'lib/droiuby/wrappers/intent.rb', line 21

def native
  @native
end