ソフトキーボードが表示されているかどうか。

使用方法

                    .appium.isKeyboardShown([callback])
                

module.exports = {
  'whether keyboard is shown': function (app) {
    app
      .appium.isKeyboardShown(function (result) {
        console.log('result value of whether keyboard is shown:', result.value);
      });
  },

  'whether keyboard is shown with ES6 async/await': async function (app) {
    const result = await app.appium.isKeyboardShown();
    console.log('result value of whether keyboard is shown:', result);
  }
};

パラメータ

名前 説明
callback
オプション
関数

結果値と共に呼び出されるコールバック関数。

戻り値

説明
boolean

キーボードが表示されている場合はtrue。

参照