Module: Android::Manifest::IntentFilter

Defined in:
lib/android/manifest.rb

Overview

intent-filter element in components

Defined Under Namespace

Classes: Action, Category, Data

Class Method Summary collapse

Class Method Details

.parse(elem) ⇒ IntentFilter::Action, ...

parse inside of intent-filter element

Parameters:

  • elem (REXML::Element)

    target element

Returns:



62
63
64
65
66
67
68
69
70
71
72
73
# File 'lib/android/manifest.rb', line 62

def self.parse(elem)
  case elem.name
  when 'action'
    Action.new(elem)
  when 'category'
    Category.new(elem)
  when 'data'
    Data.new(elem)
  else
    nil
  end
end