Stay organized with collections
Save and categorize content based on your preferences.
PluginStub
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.
Summary
Public methods |
abstract View! |
Return a custom embedded view to draw the plugin.
|
abstract View! |
Return a custom full-screen view to be displayed when the user requests a plugin display as full-screen.
|
Public methods
getEmbeddedView
abstract fun getEmbeddedView(
NPP: Int,
context: Context!
): View!
Return a custom embedded view to draw the plugin.
Parameters |
NPP |
Int: The native NPP instance. |
context |
Context!: The current application's Context. |
Return |
View! |
A custom View that will be managed by WebView. |
getFullScreenView
abstract fun getFullScreenView(
NPP: Int,
context: Context!
): View!
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. |
Return |
View! |
A custom View that will be managed by the application. |
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 2024-04-04 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 2024-04-04 UTC."],[],[]]