[ Web Proxy ]
URL:
Viewing: https://developer.android.com/reference/kotlin/android/view/ViewDebug.FlagToString [Back]  [Original]

ViewDebug.FlagToString  |  API reference  |  Android Developers Skip to main content
Essentials Design & Plan Develop Google Play Blog
Search:
Android Studio
Android Developers [Android Developers]
Stay organized with collections Save and categorize content based on your preferences.
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
FlagToString(equals: Int, mask: 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

FlagToString

Added in API level 4
FlagToString(
    equals: Int,
    mask: 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.

See Also

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.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2025-02-10 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page