Google is committed to advancing racial equity for Black communities. See how.
Added in API level 4

FlagToString

@Target([AnnotationTarget.CLASS, AnnotationTarget.FILE]) class FlagToString
android.view.ViewDebug.FlagToString

Defines a mapping from a flag to a String. Such a mapping can be used in an @ExportedProperty to provide more meaningful values to the end user.

Summary

Public constructors

<init>(mask: Int, equals: Int, name: String, outputIf: Boolean)

Defines a mapping from a flag to a String.

Properties

Int

The value to compare to the result of: original value & mask().

Int

The mask to apply to the original value.

String

The String to use in place of the original int value.

Boolean

Indicates whether to output the flag when the test is true, or false.

Public constructors

<init>

Added in API level 4
FlagToString(
    mask: Int,
    equals: Int,
    name: String,
    outputIf: Boolean)

Defines a mapping from a flag to a String. Such a mapping can be used in an @ExportedProperty to provide more meaningful values to the end user.

Properties

equals

Added in API level 4
val equals: Int

The value to compare to the result of: original value & mask().

Return
Int An arbitrary value.

mask

Added in API level 4
val mask: Int

The mask to apply to the original value.

Return
Int An arbitrary int value.

name

Added in API level 4
val name: String

The String to use in place of the original int value.

Return
String An arbitrary non-null String.

outputIf

Added in API level 4
val outputIf: Boolean

Indicates whether to output the flag when the test is true, or false. Defaults to true.