Skip to content

Most visited

Recently visited

navigation
Added in API level 5

PluginStub

public interface PluginStub

android.webkit.PluginStub


This interface is used to implement plugins in a WebView. A plugin package may extend this class and implement the abstract functions to create embedded or fullscreeen views displayed in a WebView. The PluginStub implementation will be provided the same NPP instance that is created through the native interface.

Summary

Public methods

abstract View getEmbeddedView(int NPP, Context context)

Return a custom embedded view to draw the plugin.

abstract View getFullScreenView(int NPP, Context context)

Return a custom full-screen view to be displayed when the user requests a plugin display as full-screen.

Public methods

getEmbeddedView

Added in API level 5
View getEmbeddedView (int NPP, 
                Context context)

Return a custom embedded view to draw the plugin.

Parameters
NPP int: The native NPP instance.
context Context: The current application's Context.
Returns
View A custom View that will be managed by WebView.

getFullScreenView

Added in API level 5
View getFullScreenView (int NPP, 
                Context context)

Return a custom full-screen view to be displayed when the user requests a plugin display as full-screen. Note that the application may choose not to display this View as completely full-screen.

Parameters
NPP int: The native NPP instance.
context Context: The current application's Context.
Returns
View A custom View that will be managed by the application.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.