XCUIElement+FBTVFocuse.h 917 B

123456789101112131415161718192021222324252627282930313233343536
  1. /**
  2. * Copyright (c) 2018-present, Facebook, Inc.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under the BSD-style license found in the
  6. * LICENSE file in the root directory of this source tree. An additional grant
  7. * of patent rights can be found in the PATENTS file in the same directory.
  8. */
  9. #import <XCTest/XCTest.h>
  10. NS_ASSUME_NONNULL_BEGIN
  11. #if TARGET_OS_TV
  12. @interface XCUIElement (FBTVFocuse)
  13. /**
  14. Sets focus
  15. @param error If there is an error, upon return contains an NSError object that describes the problem.
  16. @return YES if the operation succeeds, otherwise NO.
  17. */
  18. - (BOOL)fb_setFocusWithError:(NSError**) error;
  19. /**
  20. Select a focused element
  21. @param error If there is an error, upon return contains an NSError object that describes the problem.
  22. @return YES if the operation succeeds, otherwise NO.
  23. */
  24. - (BOOL)fb_selectWithError:(NSError**) error;
  25. @end
  26. #endif
  27. NS_ASSUME_NONNULL_END