Class: ApkResources::ResTypeConfig

Inherits:
Struct
  • Object
show all
Defined in:
lib/apktools/apkresources.rb

Overview

Structure that houses the configuration flags for a given resource.

ResTypeConfig = Struct.new(:imsi, :locale, :screen_type, :input, :screen_size, :version, :screen_config, :screen_size_dp)

  • imsi = Flags marking country code and network code

  • locale = Flags marking locale requirements (language)

  • screen_type = Flags/values for screen density

  • input = Flags marking input types and visibility status

  • screen_size = Flags marking screen size and length

  • version = Minimum API version

  • screen_config = Flags marking screen configuration (like orientation)

  • screen_size_dp = Flags marking smallest width constraints

A default configuration is defined as ResTypeConfig.new(0, 0, 0, 0, 0, 0, 0, 0)

Instance Attribute Summary collapse

Instance Attribute Details

#imsiObject

Returns the value of attribute imsi

Returns:

  • (Object)

    the current value of imsi



107
108
109
# File 'lib/apktools/apkresources.rb', line 107

def imsi
  @imsi
end

#inputObject

Returns the value of attribute input

Returns:

  • (Object)

    the current value of input



107
108
109
# File 'lib/apktools/apkresources.rb', line 107

def input
  @input
end

#localeObject

Returns the value of attribute locale

Returns:

  • (Object)

    the current value of locale



107
108
109
# File 'lib/apktools/apkresources.rb', line 107

def locale
  @locale
end

#screen_configObject

Returns the value of attribute screen_config

Returns:

  • (Object)

    the current value of screen_config



107
108
109
# File 'lib/apktools/apkresources.rb', line 107

def screen_config
  @screen_config
end

#screen_sizeObject

Returns the value of attribute screen_size

Returns:

  • (Object)

    the current value of screen_size



107
108
109
# File 'lib/apktools/apkresources.rb', line 107

def screen_size
  @screen_size
end

#screen_size_dpObject

Returns the value of attribute screen_size_dp

Returns:

  • (Object)

    the current value of screen_size_dp



107
108
109
# File 'lib/apktools/apkresources.rb', line 107

def screen_size_dp
  @screen_size_dp
end

#screen_typeObject

Returns the value of attribute screen_type

Returns:

  • (Object)

    the current value of screen_type



107
108
109
# File 'lib/apktools/apkresources.rb', line 107

def screen_type
  @screen_type
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



107
108
109
# File 'lib/apktools/apkresources.rb', line 107

def version
  @version
end