ESScriptingPluginView

Inherits fromESNetscapePluginView:NSView:NSObject
FrameworkFlashInApp.framework
Declared in ESScriptingPluginView.h
Companion guideFlash’In’App Programming Guide 
Required system version Mac OS X 10.4 and higher

 

Class description for ESScriptingPluginView


ESScriptingPluginView is an abstract class for communication with plugin through scriptable plugin API (plugin functions calling and processing of application functions calling from plugin).

 

Tasks of ESScriptingPluginView


 

Instance Methods


invokeFunction:

This method actually calls scripting plugin’s functions with the ‘name’ name via ‘invoke’ without arguments.
– (id) invokeFunction:(NSString *)name;

Return Value

YES when the function is invoked, otherwise NO.

Discussion

For instance, Flash plugin will have Play, IsPlaying, StopPlay functions.

 

invokeFunction:withArgument:

This method actually calls scripting plugin’s functions with the ‘name’ name via ‘invoke’ with one argument.

– (id) invokeFunction:(NSString *)name withArgument:(id)argument;

Return Value

YES when the function is invoked, otherwise NO.

 

invokeFunction:withArguments:

This method actually calls scripting plugin’s functions with the ‘name’ name via ‘invoke’ with several (array of) arguments.

– (id) invokeFunction:(NSString *)name withArguments:(NSArray *)arguments;

Return Value

YES when the function is invoked, otherwise NO.
 

hasFunction:

This method checks whether plugin can execute the function with the following name.

– (BOOL) hasFunction:(NSString *)aName;

Parameters
aName – function name

Return value

YES when the function can be executed, otherwise NO.