How to use Phonegap SoftKeyboard Plugin for Android?

前端 未结 5 1521
被撕碎了的回忆
被撕碎了的回忆 2020-12-05 00:31

I am developing an Android application using Phonegap. I need to make the softkeyboard appear programatically. I am using the SoftKeyboard plugin which is found here. Can an

5条回答
  •  死守一世寂寞
    2020-12-05 01:08

    Try it like this:

    SoftKeyBoard.show(function () {
        // success
    },function () {
       // fail
    });
    

    The code in the JS file does not put it in the "plugins" namespace.

    Orjust use the PhoneGap plugins full namespace:

    window.plugins.SoftKeyBoard.show(function () {
        // success
    },function () {
       // fail
    });
    

提交回复
热议问题