Class: Android::Manifest::IntentFilter::Category

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

Overview

intent-filter category class

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ Category

Returns a new instance of Category.



272
273
274
275
# File 'lib/android/manifest.rb', line 272

def initialize(elem)
  @type = 'category'
  @name = elem.attributes['name']
end

Instance Attribute Details

#nameString (readonly)

Returns category name of intent-filter.

Returns:

  • (String)

    category name of intent-filter



268
269
270
# File 'lib/android/manifest.rb', line 268

def name
  @name
end

#typeString (readonly)

Returns category type of intent-filter.

Returns:

  • (String)

    category type of intent-filter



270
271
272
# File 'lib/android/manifest.rb', line 270

def type
  @type
end