Class: ApkResources::ResTypeEntry

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



121
122
123
# File 'lib/apktools/apkresources.rb', line 121

def data
  @data
end

#data_typeObject

Returns the value of attribute data_type

Returns:

  • (Object)

    the current value of data_type



121
122
123
# File 'lib/apktools/apkresources.rb', line 121

def data_type
  @data_type
end

#flagsObject

Returns the value of attribute flags

Returns:

  • (Object)

    the current value of flags



121
122
123
# File 'lib/apktools/apkresources.rb', line 121

def flags
  @flags
end

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



121
122
123
# File 'lib/apktools/apkresources.rb', line 121

def key
  @key
end