booster / com.didiglobal.booster.aapt2 / Resources / Attribute / FormatFlags

FormatFlags

class FormatFlags : ProtocolMessageEnum


      Bitmask of formats allowed for an attribute.
      
Protobuf enum aapt.pb.Attribute.FormatFlags

Enum Values

NONE

ANY

REFERENCE

STRING

INTEGER

BOOLEAN

COLOR

FLOAT

DIMENSION

FRACTION

ENUM

FLAGS

UNRECOGNIZED

Properties

ANY_VALUE


        Allows any type except ENUM and FLAGS.
        
ANY = 65535;

static val ANY_VALUE: Int

BOOLEAN_VALUE


        Allows any boolean BinaryPrimitive values.
        
BOOLEAN = 8;

static val BOOLEAN_VALUE: Int

COLOR_VALUE


        Allows any color BinaryPrimitive values.
        
COLOR = 16;

static val COLOR_VALUE: Int

DIMENSION_VALUE


        Allows any dimension BinaryPrimitive values.
        
DIMENSION = 64;

static val DIMENSION_VALUE: Int

ENUM_VALUE


        Allows enums that are defined in the Attribute's symbols.
        
ENUM = 65536;

static val ENUM_VALUE: Int

FLAGS_VALUE


        ENUM and FLAGS cannot BOTH be set.
        
FLAGS = 131072;

static val FLAGS_VALUE: Int

FLOAT_VALUE


        Allows any float BinaryPrimitive values.
        
FLOAT = 32;

static val FLOAT_VALUE: Int

FRACTION_VALUE


        Allows any fraction BinaryPrimitive values.
        
FRACTION = 128;

static val FRACTION_VALUE: Int

INTEGER_VALUE


        Allows any integer BinaryPrimitive values.
        
INTEGER = 4;

static val INTEGER_VALUE: Int

NONE_VALUE


        Proto3 requires a default of 0.
        
NONE = 0;

static val NONE_VALUE: Int

REFERENCE_VALUE


        Allows Reference values.
        
REFERENCE = 1;

static val REFERENCE_VALUE: Int

STRING_VALUE


        Allows String/StyledString values.
        
STRING = 2;

static val STRING_VALUE: Int

Functions

forNumber

static fun forNumber(value: Int): FormatFlags!

getDescriptor

static fun getDescriptor(): EnumDescriptor!

getDescriptorForType

fun getDescriptorForType(): EnumDescriptor!

getNumber

fun getNumber(): Int

getValueDescriptor

fun getValueDescriptor(): EnumValueDescriptor!

internalGetValueMap

static fun internalGetValueMap(): EnumLiteMap<FormatFlags!>!

valueOf

static fun valueOf(value: Int): FormatFlags!
static fun valueOf(desc: EnumValueDescriptor!): FormatFlags!