Class: Android::Manifest::ActivityAlias

Inherits:
Activity show all
Defined in:
lib/android/manifest.rb

Constant Summary

Constants inherited from Component

Component::TYPES

Instance Attribute Summary collapse

Attributes inherited from Component

#elem, #icon_id, #intent_filters, #metas, #name, #type

Instance Method Summary collapse

Methods inherited from Activity

#default_launcher_activity?, #launcher_activity?, valid?

Methods inherited from Component

valid?

Constructor Details

#initialize(elem) ⇒ ActivityAlias

Returns a new instance of ActivityAlias.

Parameters:

  • elem (REXML::Element)

    target element

Raises:

  • (ArgumentError)

    when elem is invalid.



112
113
114
115
# File 'lib/android/manifest.rb', line 112

def initialize(elem)
  super
  @target_activity = elem.attributes['targetActivity']
end

Instance Attribute Details

#target_activityString (readonly)

Returns target activity name.

Returns:

  • (String)

    target activity name



108
109
110
# File 'lib/android/manifest.rb', line 108

def target_activity
  @target_activity
end