Stay organized with collections
Save and categorize content based on your preferences.
Filter
interface Filter
Known Direct Subclasses
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 |
Hook to allow clients of the LayoutInflater to restrict the set of Views that are allowed to be inflated.
|
Public methods
onLoadClass
abstract fun onLoadClass(clazz: Class<Any!>!): Boolean
Hook to allow clients of the LayoutInflater to restrict the set of Views that are allowed to be inflated.
Parameters |
clazz |
Class<Any!>!: The class object for the View that is about to be inflated |
Return |
Boolean |
True if this class is allowed to be inflated, or false otherwise |
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."],[],[],null,["# LayoutInflater.Filter\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nFilter\n======\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/view/LayoutInflater.Filter \"View this page in Java\") \n\n```\ninterface Filter\n```\n\n|-----------------------------------------|\n| [android.view.LayoutInflater.Filter](#) |\n\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [RemoteViews](../widget/RemoteViews.html#) |--------------------------------------------|-----------------------------------------------------------------------------------| | [RemoteViews](../widget/RemoteViews.html#) | A class that describes a view hierarchy that can be displayed in another process. | |\n\nHook to allow clients of the LayoutInflater to restrict the set of Views that are allowed to be inflated.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [onLoadClass](#onLoadClass(java.lang.Class))`(`clazz:` `[Class](../../java/lang/Class.html#)\u003c[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)!\u003e!`)` Hook to allow clients of the LayoutInflater to restrict the set of Views that are allowed to be inflated. |\n\nPublic methods\n--------------\n\n### onLoadClass\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onLoadClass(clazz: Class\u003cAny!\u003e!): Boolean\n```\n\nHook to allow clients of the LayoutInflater to restrict the set of Views that are allowed to be inflated.\n\n| Parameters ||\n|---------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `clazz` | [Class](../../java/lang/Class.html#)\\\u003c[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)!\\\u003e!: The class object for the View that is about to be inflated |\n\n| Return ||\n|------------------------------------------------------------------------------------|------------------------------------------------------------------|\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | True if this class is allowed to be inflated, or false otherwise |"]]