[ Web Proxy ]
URL:
Viewing: https://developer.android.com/reference/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

ViewDebug.FlagToString


public static abstract @interface ViewDebug.FlagToString
implements Annotation

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.

See also:

Summary

Public methods

int equals()

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

int mask()

The mask to apply to the original value.

String name()

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

boolean outputIf()

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

Inherited methods

Public methods

equals

Added in API level 4
public int equals ()

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

Returns
int An arbitrary value.

mask

Added in API level 4
public int mask ()

The mask to apply to the original value.

Returns
int An arbitrary int value.

name

Added in API level 4
public String name ()

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

Returns
String An arbitrary non-null String.

outputIf

Added in API level 4
public boolean outputIf ()

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

Returns
boolean

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 2026-08-03 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 2026-08-03 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page