NPN_HasMethod

« Gecko Plugin API Reference « Scripting plugins

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.

Document Tags and Contributors

Tags: 
 Contributors to this page: teoli, aaashun, Sheppy, Jst
 Last updated by: teoli,