Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
Added in API level 5
public interface

PluginStub

android.webkit.PluginStub

Class Overview

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

public abstract View getEmbeddedView (int NPP, Context context)

Added in API level 5

Return a custom embedded view to draw the plugin.

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

public abstract View getFullScreenView (int NPP, Context context)

Added in API level 5

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 The native NPP instance.
context The current application's Context.
Returns
  • A custom View that will be managed by the application.