nerdexam
IBM

C2180-279 · Question #106

A developer wants to use an Apache Cordova plugin to invoke native code in a Worklight mobile application targeted to run on an Android platform. After writing the native code class, which…

The correct answer is B. Write a JavaScript wrapper for the native code and define the plugin in the project's Cordova. See the full explanation below for the reasoning.

Question

A developer wants to use an Apache Cordova plugin to invoke native code in a Worklight mobile application targeted to run on an Android platform. After writing the native code class, which additional steps must the developer perform to complete the plugin?

Options

  • AWrite a HTML page to use to invoke the plugin and define the plugin in the project's Cordova
  • BWrite a JavaScript wrapper for the native code and define the plugin in the project's Cordova
  • CWrite a JavaScript wrapper for the native code and set the <use-cordova-plugin> element to true
  • DDefine the plugin in the project's Cordova plugin definition file and set the <use-cordova- plugin>

How the community answered

(17 responses)
  • A
    12% (2)
  • B
    71% (12)
  • C
    6% (1)
  • D
    12% (2)

Community Discussion

No community discussion yet for this question.

Full C2180-279 Practice