Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 125490 of Plug-in Side Plug-in API

  • Revision slug: Gecko_Plugin_API_Reference/Plug-in_Side_Plug-in_API
  • Revision title: Plug-in Side Plug-in API
  • Revision id: 125490
  • Created:
  • Creator: Kray2
  • Is current revision? No
  • Comment fixing series category

Revision Content

{{ PreviousNext("Gecko Plugin API Reference:Version, UI, and Status Information", "Gecko Plugin API Reference:Browser Side Plug-in API") }} {{ Npapiref() }}

This chapter describes methods in the plug-in API that are available for the plug-in object. The names of all of these methods begin with NPP_ to indicate that they are implemented by the plug-in and called by the browser. For an overview of how these two sides of the plug-in API interact, see the {{ Npapi-section("Plug-in Basics", "How Plug-ins Work") }} and {{ Npapi-section("Plug-in Basics", "Overview of Plug-in Structure") }} sections in the introduction.

Plugin method summary

{{ Npapi("NPP_Destroy") }}
Deletes a specific instance of a plug-in.
{{ Npapi("NPP_DestroyStream") }}
Tells the plug-in that a stream is about to be closed or destroyed.
{{ Npapi("NP_GetEntryPoints") }}
Undocumented.
{{ Npapi("NP_GetMIMEDescription") }}
Undocumented.
{{ Npapi("NPP_GetValue") }}
Allows the browser to query the plug-in for information.
{{ Npapi("NP_GetValue") }}
Allows the browser to query the plug-in for information.
{{ Npapi("NPP_HandleEvent") }}
Delivers a platform-specific window event to the instance.
{{ Npapi("NP_Initialize") }}
Provides global initialization for a plug-in.
{{ Npapi("NPP_New") }}
Creates a new instance of a plug-in.
{{ Npapi("NPP_NewStream") }}
Notifies a plug-in instance of a new data stream.
{{ Npapi("NPP_Print") }}
Requests a platform-specific print operation for an embedded or full-screen plug-in.
{{ Npapi("NPP_SetValue") }}
Sets information about the plug-in.
{{ Npapi("NPP_SetWindow") }}
Tells the plug-in when a window is created, moved, sized, or destroyed.
{{ Npapi("NP_Shutdown") }}
Provides global deinitialization for a plug-in.
{{ Npapi("NPP_StreamAsFile") }}
Provides a local file name for the data from a stream.
{{ Npapi("NPP_URLNotify") }}
Notifies the instance of the completion of a URL request.
{{ Npapi("NPP_Write") }}
Delivers data to a plug-in instance.
{{ Npapi("NPP_WriteReady") }}
Determines maximum number of bytes that the plug-in can consume.

{{ PreviousNext("Gecko Plugin API Reference:Version, UI, and Status Information", "Gecko Plugin API Reference:Browser Side Plug-in API") }}

{{ languages( { "ja": "ja/Gecko_Plugin_API_Reference/Plug-in_Side_Plug-in_API", "pl": "pl/Dokumentacja_wtyczek_Gecko/Interfejs_programowania_aplikacji_(API)_od_strony_wtyczki" } ) }}

Revision Source

<p>
{{ PreviousNext("Gecko Plugin API Reference:Version, UI, and Status Information", "Gecko Plugin API Reference:Browser Side Plug-in API") }} {{ Npapiref() }}
</p><p>This chapter describes methods in the plug-in API that are available for the plug-in object. The names of all of these methods begin with <code>NPP_</code> to indicate that they are implemented by the plug-in and called by the browser. For an overview of how these two sides of the plug-in API interact, see the {{ Npapi-section("Plug-in Basics", "How Plug-ins Work") }} and {{ Npapi-section("Plug-in Basics", "Overview of Plug-in Structure") }} sections in the introduction.
</p>
<h3 name="Plugin_method_summary"> Plugin method summary </h3>
<dl><dt> {{ Npapi("NPP_Destroy") }}
</dt><dd> Deletes a specific instance of a plug-in.
</dd><dt> {{ Npapi("NPP_DestroyStream") }}
</dt><dd> Tells the plug-in that a stream is about to be closed or destroyed.
</dd><dt> {{ Npapi("NP_GetEntryPoints") }}
</dt><dd> Undocumented.
</dd><dt> {{ Npapi("NP_GetMIMEDescription") }}
</dt><dd> Undocumented.
</dd><dt> {{ Npapi("NPP_GetValue") }}
</dt><dd> Allows the browser to query the plug-in for information.
</dd><dt> {{ Npapi("NP_GetValue") }}
</dt><dd> Allows the browser to query the plug-in for information.
</dd><dt> {{ Npapi("NPP_HandleEvent") }}
</dt><dd> Delivers a platform-specific window event to the instance.
</dd><dt> {{ Npapi("NP_Initialize") }}
</dt><dd> Provides global initialization for a plug-in.
</dd><dt> {{ Npapi("NPP_New") }}
</dt><dd> Creates a new instance of a plug-in.
</dd><dt> {{ Npapi("NPP_NewStream") }}
</dt><dd> Notifies a plug-in instance of a new data stream.
</dd><dt> {{ Npapi("NPP_Print") }}
</dt><dd> Requests a platform-specific print operation for an embedded or full-screen plug-in.
</dd><dt> {{ Npapi("NPP_SetValue") }}
</dt><dd> Sets information about the plug-in.
</dd><dt> {{ Npapi("NPP_SetWindow") }}
</dt><dd> Tells the plug-in when a window is created, moved, sized, or destroyed.
</dd><dt> {{ Npapi("NP_Shutdown") }}
</dt><dd> Provides global deinitialization for a plug-in.
</dd><dt> {{ Npapi("NPP_StreamAsFile") }}
</dt><dd> Provides a local file name for the data from a stream.
</dd><dt> {{ Npapi("NPP_URLNotify") }}
</dt><dd> Notifies the instance of the completion of a URL request.
</dd><dt> {{ Npapi("NPP_Write") }}
</dt><dd> Delivers data to a plug-in instance.
</dd><dt> {{ Npapi("NPP_WriteReady") }}
</dt><dd> Determines maximum number of bytes that the plug-in can consume.
</dd></dl>
<p>{{ PreviousNext("Gecko Plugin API Reference:Version, UI, and Status Information", "Gecko Plugin API Reference:Browser Side Plug-in API") }}
</p>
<div class="noinclude">
</div>
{{ languages( { "ja": "ja/Gecko_Plugin_API_Reference/Plug-in_Side_Plug-in_API", "pl": "pl/Dokumentacja_wtyczek_Gecko/Interfejs_programowania_aplikacji_(API)_od_strony_wtyczki" } ) }}
Revert to this revision