mozilla

Revision 137336 of NPN_HasMethod

  • Revision slug: NPN_HasMethod
  • Revision title: NPN_HasMethod
  • Revision id: 137336
  • Created:
  • Creator: aaashun
  • Is current revision? Yes
  • Comment 1 words added, 1 words removed
Tags: 

Revision Content

{{ Np-plugin-scripting() }}

Summary

Determines whether or not the specified NPObject has a particular method.

Syntax

#include <npruntime.h>
 
bool NPN_HasMethod(NPP npp, NPObject *npobj, NPIdentifier methodName);

Parameters

The function has the following parameters:

npp
The NPP indicating which plugin instance is making the request.
npobj
The object on which to look for the method.
methodName
A string identifier indicating the name of the method to look for.

Returns

true if the method exists on the specified object, otherwise false.

Revision Source

<p>{{ Np-plugin-scripting() }}</p>
<h3 id="Summary" name="Summary">Summary</h3>
<p>Determines whether or not the specified <code><a href="/en/NPObject" title="en/NPObject">NPObject</a></code> has a particular method.</p>
<h3 id="Syntax" name="Syntax">Syntax</h3>
<pre>#include &lt;npruntime.h&gt;
 
bool NPN_HasMethod(NPP npp, NPObject *npobj, NPIdentifier methodName);
</pre>
<h3 id="Parameters" name="Parameters">Parameters</h3>
<p>The function has the following parameters:</p>
<dl><dt><code>npp</code> </dt><dd>The <a href="/en/NPP" title="en/NPP">NPP</a> indicating which plugin instance is making the request. </dd><dt><code>npobj</code> </dt><dd>The object on which to look for the method. </dd><dt><code>methodName</code> </dt><dd>A string identifier indicating the name of the method to look for. </dd></dl>
<h3 id="Returns" name="Returns">Returns</h3>
<p><code>true</code> if the method exists on the specified object, otherwise <code>false</code>.</p>
Revert to this revision