Whether or not the soft keyboard is shown.

Usage

                    .appium.isKeyboardShown([callback])
                

Example

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);
  }
};

Parameters

Name Type description
callback
Optional
function

Callback function which is called with the result value.

Returns

Type description
boolean

True if the keyboard is shown.

See also