Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

# android.view.inspector

*** ** * ** ***

## Interfaces

|---|---|
| [InspectionCompanion](https://developer.android.com/reference/android/view/inspector/InspectionCompanion)\<T\> | An interface for companion objects used to inspect views. |
| [InspectionCompanionProvider](https://developer.android.com/reference/android/view/inspector/InspectionCompanionProvider) | An interface for services that can provide inspection companions for a class. |
| [PropertyMapper](https://developer.android.com/reference/android/view/inspector/PropertyMapper) | An interface for mapping the string names of inspectable properties to integer identifiers. |
| [PropertyReader](https://developer.android.com/reference/android/view/inspector/PropertyReader) | An interface for reading the properties of an inspectable object. |

## Classes

|---|---|
| [IntFlagMapping](https://developer.android.com/reference/android/view/inspector/IntFlagMapping) | Maps the values of an `int` property to sets of string for properties that encode flags. |
| [StaticInspectionCompanionProvider](https://developer.android.com/reference/android/view/inspector/StaticInspectionCompanionProvider) | An inspection companion provider that finds companions as inner classes or generated code. |
| [WindowInspector](https://developer.android.com/reference/android/view/inspector/WindowInspector) | Provides access to window inspection information. |

## Exceptions

|---|---|
| [InspectionCompanion.UninitializedPropertyMapException](https://developer.android.com/reference/android/view/inspector/InspectionCompanion.UninitializedPropertyMapException) | Thrown by `https://developer.android.com/reference/android/view/inspector/InspectionCompanion#readProperties(T,%20android.view.inspector.PropertyReader)` if called before `https://developer.android.com/reference/android/view/inspector/InspectionCompanion#mapProperties(android.view.inspector.PropertyMapper)`. |
| [PropertyMapper.PropertyConflictException](https://developer.android.com/reference/android/view/inspector/PropertyMapper.PropertyConflictException) | Thrown from a map method if a property name is already mapped as different type. |
| [PropertyReader.PropertyTypeMismatchException](https://developer.android.com/reference/android/view/inspector/PropertyReader.PropertyTypeMismatchException) | Thrown if a client calls a typed read method for a property of a different type. |

-

  ## Interfaces

  - [InspectionCompanion](https://developer.android.com/reference/android/view/inspector/InspectionCompanion)
  - [InspectionCompanionProvider](https://developer.android.com/reference/android/view/inspector/InspectionCompanionProvider)
  - [PropertyMapper](https://developer.android.com/reference/android/view/inspector/PropertyMapper)
  - [PropertyReader](https://developer.android.com/reference/android/view/inspector/PropertyReader)
-

  ## Classes

  - [IntFlagMapping](https://developer.android.com/reference/android/view/inspector/IntFlagMapping)
  - [StaticInspectionCompanionProvider](https://developer.android.com/reference/android/view/inspector/StaticInspectionCompanionProvider)
  - [WindowInspector](https://developer.android.com/reference/android/view/inspector/WindowInspector)
-

  ## Exceptions

  - [InspectionCompanion.UninitializedPropertyMapException](https://developer.android.com/reference/android/view/inspector/InspectionCompanion.UninitializedPropertyMapException)
  - [PropertyMapper.PropertyConflictException](https://developer.android.com/reference/android/view/inspector/PropertyMapper.PropertyConflictException)
  - [PropertyReader.PropertyTypeMismatchException](https://developer.android.com/reference/android/view/inspector/PropertyReader.PropertyTypeMismatchException)