InspectableProperty.FlagEntry

Added in 1.1.0
Deprecated in 1.3.0


One flag value of many that may be packed into a primitive {int}.

Summary

Public constructors

FlagEntry(name: String, target: Int, mask: Int)
android

Public properties

Int

A mask that the property will be bitwise anded with before comparing to the target.

android
String

The string name of this flag.

android
Int

A target value that the property's value must equal after masking.

android

Public constructors

FlagEntry

FlagEntry(name: String, target: Int, mask: Int = 0)

Public properties

mask

val maskInt

A mask that the property will be bitwise anded with before comparing to the target.

If set to 0 (the default), the value of target will be used as a mask. Zero was chosen as the default since bitwise and with zero is always zero.

Returns
Int

A mask, or 0 to use the target as a mask

name

val nameString

The string name of this flag.

Returns
String

A string name

target

val targetInt

A target value that the property's value must equal after masking.

If a mask is not supplied (i.e., mask is 0), the target will be reused as the mask. This handles the common case where no flags mutually exclude each other.

Returns
Int

The target value to compare against