Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Methods](https://developer.android.com/reference/android/view/LayoutInflater.Filter#pubmethods)

# LayoutInflater.Filter

*** ** * ** ***

` public static interface LayoutInflater.Filter `   
` `

|---|
| android.view.LayoutInflater.Filter |

Known indirect subclasses [RemoteViews](https://developer.android.com/reference/android/widget/RemoteViews) [RemoteViews](https://developer.android.com/reference/android/widget/RemoteViews) A class that describes a view hierarchy that can be displayed in another process.   

*** ** * ** ***

Hook to allow clients of the LayoutInflater to restrict the set of Views that are allowed to be inflated.

## Summary

| ### Public methods ||
|---|---|
| ` abstract boolean` | ` https://developer.android.com/reference/android/view/LayoutInflater.Filter#onLoadClass(java.lang.Class)(https://developer.android.com/reference/java/lang/Class<T> clazz) ` Hook to allow clients of the LayoutInflater to restrict the set of Views that are allowed to be inflated. |

## Public methods

### onLoadClass

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

```
public abstract boolean onLoadClass (Class<T> clazz)
```

Hook to allow clients of the LayoutInflater to restrict the set of Views that are allowed to be inflated.

<br />

| Parameters ||
|---|---|
| `clazz` | `Class`: The class object for the View that is about to be inflated <br /> |

| Returns ||
|---|---|
| `boolean` | True if this class is allowed to be inflated, or false otherwise <br /> |