FileDocCategorySizeDatePackage
PluginStub.javaAPI DocAndroid 5.1 API1848Thu Mar 12 22:22:10 GMT 2015android.webkit

PluginStub

public interface 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.

Fields Summary
Constructors Summary
Methods Summary
public abstract android.view.ViewgetEmbeddedView(int NPP, android.content.Context context)
Return a custom embedded view to draw the plugin.

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

public abstract android.view.ViewgetFullScreenView(int NPP, android.content.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.

param
NPP The native NPP instance.
param
context The current application's Context.
return
A custom View that will be managed by the application.