Hitachi

JP1 Version 12 JP1/Navigation Platform Content Editing Guide


5.12 APIs that can be used with JavaScript Plugin Parts

The following table describes the APIs (JavaScript APIs) that can be used with JavaScript Plugin Parts.

Table 5‒4: APIs that can be used with JavaScript Plugin Parts

Category

Class name

Description

Plugin manager

JavaScriptPluginManager

This class provides objects that allow JavaScript to perform processing provided by Navigation Platform.

REST caller

RestClient

This class invokes a URL from JavaScript.

To use an API, you have to acquire the JavaScriptPluginManager object by using the reserved variable ucnpJavaScriptPluginManager from JavaScript. Furthermore, if REST is to be invoked, you have to acquire the RestClient object by using the getRestClient method of the reserved variable ucnpJavaScriptPluginManager.

Because the methods (except the execute method) of the RestClient object return the RestClient object of the caller, they can be invoked with a method chain.

You can acquire the constant to be specified as the argument of the method of the RestClient object from the RestClient instance.

Organization of this section