Most visited

Recently visited

Added in API level 5

PluginStub

public interface PluginStub

android.webkit.PluginStub


该接口用于在WebView中实现插件。 插件包可以扩展这个类并实现抽象函数来创建在WebView中显示的嵌入或全屏视图。 PluginStub实现将提供与通过本地接口创建的相同NPP实例。

Summary

Public methods

abstract View getEmbeddedView(int NPP, Context context)

返回一个自定义的嵌入式视图来绘制插件。

abstract View getFullScreenView(int NPP, Context context)

当用户请求插件显示为全屏时,返回自定义的全屏视图。

Public methods

getEmbeddedView

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

返回一个自定义的嵌入式视图来绘制插件。

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)

当用户请求插件显示为全屏时,返回自定义的全屏视图。 请注意,应用程序可能选择不将此视图显示为完全全屏。

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.

Hooray!