Class: ApkResources::ResTypeEntry
- Inherits:
-
Struct
- Object
- Struct
- ApkResources::ResTypeEntry
- Defined in:
- lib/apktools/apkresources.rb
Overview
Structure that houses the data for a given resource entry
ResTypeEntry = Struct.new(:flags, :key, :data_type, :data)
-
flags
= Flags marking if the resource is complex or public -
key
= Key string for the resource (e.g. “ic_launcher” of R.drawable.ic_launcher“) -
data_type
= Type identifier. The meaning of this value varies with the type of resource -
data
= Resource value (e.g. “res/drawable/ic_launcher” for R.drawable.ic_launcher“)
A single resource key can have multiple entries depending on configuration, so these structs are often returned in groups, keyed by a ResTypeConfig
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#data_type ⇒ Object
Returns the value of attribute data_type.
-
#flags ⇒ Object
Returns the value of attribute flags.
-
#key ⇒ Object
Returns the value of attribute key.
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data
121 122 123 |
# File 'lib/apktools/apkresources.rb', line 121 def data @data end |
#data_type ⇒ Object
Returns the value of attribute data_type
121 122 123 |
# File 'lib/apktools/apkresources.rb', line 121 def data_type @data_type end |
#flags ⇒ Object
Returns the value of attribute flags
121 122 123 |
# File 'lib/apktools/apkresources.rb', line 121 def flags @flags end |
#key ⇒ Object
Returns the value of attribute key
121 122 123 |
# File 'lib/apktools/apkresources.rb', line 121 def key @key end |