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 125489 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: 125489
  • Created:
  • Creator: Kray2
  • Is current revision? No
  • Comment adding series category

Revision Content

{{template.PreviousNext("Gecko Plugin API Reference:Version, UI, and Status Information", "Gecko Plugin API Reference:Browser Side Plug-in API")}} {{template.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 {{wiki.template('Npapi-section', [ "Plug-in Basics", "How Plug-ins Work" ])}} and {{wiki.template('Npapi-section', [ "Plug-in Basics", "Overview of Plug-in Structure" ])}} sections in the introduction.

Plugin method summary

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

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

{{ wiki.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>
{{template.PreviousNext("Gecko Plugin API Reference:Version, UI, and Status Information", "Gecko Plugin API Reference:Browser Side Plug-in API")}} {{template.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 {{wiki.template('Npapi-section', [ "Plug-in Basics", "How Plug-ins Work" ])}} and {{wiki.template('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> {{template.Npapi("NPP_Destroy")}}
</dt><dd> Deletes a specific instance of a plug-in.
</dd><dt> {{template.Npapi("NPP_DestroyStream")}}
</dt><dd> Tells the plug-in that a stream is about to be closed or destroyed.
</dd><dt> {{template.Npapi("NP_GetEntryPoints")}}
</dt><dd> Undocumented.
</dd><dt> {{template.Npapi("NP_GetMIMEDescription")}}
</dt><dd> Undocumented.
</dd><dt> {{template.Npapi("NPP_GetValue")}}
</dt><dd> Allows the browser to query the plug-in for information.
</dd><dt> {{template.Npapi("NP_GetValue")}}
</dt><dd> Allows the browser to query the plug-in for information.
</dd><dt> {{template.Npapi("NPP_HandleEvent")}}
</dt><dd> Delivers a platform-specific window event to the instance.
</dd><dt> {{template.Npapi("NP_Initialize")}}
</dt><dd> Provides global initialization for a plug-in.
</dd><dt> {{template.Npapi("NPP_New")}}
</dt><dd> Creates a new instance of a plug-in.
</dd><dt> {{template.Npapi("NPP_NewStream")}}
</dt><dd> Notifies a plug-in instance of a new data stream.
</dd><dt> {{template.Npapi("NPP_Print")}}
</dt><dd> Requests a platform-specific print operation for an embedded or full-screen plug-in.
</dd><dt> {{template.Npapi("NPP_SetValue")}}
</dt><dd> Sets information about the plug-in.
</dd><dt> {{template.Npapi("NPP_SetWindow")}}
</dt><dd> Tells the plug-in when a window is created, moved, sized, or destroyed.
</dd><dt> {{template.Npapi("NP_Shutdown")}}
</dt><dd> Provides global deinitialization for a plug-in.
</dd><dt> {{template.Npapi("NPP_StreamAsFile")}}
</dt><dd> Provides a local file name for the data from a stream.
</dd><dt> {{template.Npapi("NPP_URLNotify")}}
</dt><dd> Notifies the instance of the completion of a URL request.
</dd><dt> {{template.Npapi("NPP_Write")}}
</dt><dd> Delivers data to a plug-in instance.
</dd><dt> {{template.Npapi("NPP_WriteReady")}}
</dt><dd> Determines maximum number of bytes that the plug-in can consume.
</dd></dl>
<p>{{template.PreviousNext("Gecko Plugin API Reference:Version, UI, and Status Information", "Gecko Plugin API Reference:Browser Side Plug-in API")}}
</p>
<div class="noinclude">
</div>
{{ wiki.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