Class: IntentWrapper

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

Instance Method Summary collapse

Methods included from Droiuby::ViewHelper

included

Constructor Details

#initialize(intent) ⇒ IntentWrapper

Returns a new instance of IntentWrapper.



7
8
9
10
11
12
13
# File 'lib/droiuby/wrappers/intent_wrapper.rb', line 7

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



15
16
17
# File 'lib/droiuby/wrappers/intent_wrapper.rb', line 15

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

#nativeObject



19
20
21
# File 'lib/droiuby/wrappers/intent_wrapper.rb', line 19

def native
  @native
end