Stay organized with collections
Save and categorize content based on your preferences.
PluginState
class PluginState
The plugin state effects how plugins are treated on a page. ON means that any object will be loaded even if a plugin does not exist to handle the content. ON_DEMAND means that if there is a plugin installed that can handle the content, a placeholder is shown until the user clicks on the placeholder. Once clicked, the plugin will be enabled on the page. OFF means that all plugins will be turned off and any fallback content will be used.
Summary
Enum values
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,["# WebSettings.PluginState\n\nAdded in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nPluginState\n===========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/webkit/WebSettings.PluginState \"View this page in Java\") \n\n```\nclass PluginState\n```\n\n|---|---|---------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||\n| ↳ | [kotlin.Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)\\\u003c[android.webkit.WebSettings.PluginState](#)\\\u003e ||\n| | ↳ | [android.webkit.WebSettings.PluginState](#) |\n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [WebSettings.PluginState.OFF](#ENUM_VALUE:OFF), [WebSettings.PluginState.ON](#ENUM_VALUE:ON), [WebSettings.PluginState.ON_DEMAND](#ENUM_VALUE:ON_DEMAND) |------------------------------------------------------------|--------| | [WebSettings.PluginState.OFF](#ENUM_VALUE:OFF) | \u003cbr /\u003e | | [WebSettings.PluginState.ON](#ENUM_VALUE:ON) | \u003cbr /\u003e | | [WebSettings.PluginState.ON_DEMAND](#ENUM_VALUE:ON_DEMAND) | \u003cbr /\u003e | |\n\nThe plugin state effects how plugins are treated on a page. ON means that any object will be loaded even if a plugin does not exist to handle the content. ON_DEMAND means that if there is a plugin installed that can handle the content, a placeholder is shown until the user clicks on the placeholder. Once clicked, the plugin will be enabled on the page. OFF means that all plugins will be turned off and any fallback content will be used.\n\nSummary\n-------\n\n| Enum values ||\n|-------------------------------------------|---|\n| [OFF](#ENUM_VALUE:OFF) \u003cbr /\u003e |\n| [ON](#ENUM_VALUE:ON) \u003cbr /\u003e |\n| [ON_DEMAND](#ENUM_VALUE:ON_DEMAND) \u003cbr /\u003e |\n\nEnum values\n-----------\n\n### OFF\n\nAdded in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val OFF : WebSettings.PluginState\n``` \n\n### ON\n\nAdded in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val ON : WebSettings.PluginState\n``` \n\n### ON_DEMAND\n\nAdded in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val ON_DEMAND : WebSettings.PluginState\n```"]]