setVisibilityForTesting static method

  1. @visibleForTesting
void setVisibilityForTesting(
  1. bool isKeyboardVisible
)

Forces this library to report a specific value for isKeyboardVisible for testing purposes.

KeyboardVisibility will continue reporting isKeyboardVisible until the value is changed again with this method.

Implementation

@visibleForTesting
static void setVisibilityForTesting(bool isKeyboardVisible) {
  KeyboardVisibilityHandler.setVisibilityForTesting(isKeyboardVisible);
}