FBScreenRecordingRequest.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /**
  2. * Copyright (c) 2015-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. @interface FBScreenRecordingRequest : NSObject
  12. /** The amount of video FPS */
  13. @property (readonly, nonatomic) NSUInteger fps;
  14. /** Codec to use, where 0 is h264, 1 - HEVC */
  15. @property (readonly, nonatomic) long long codec;
  16. /**
  17. Creates a custom wrapper for a screen recording reqeust
  18. @param fps FPS value, see baove
  19. @param codec Codex value, see above
  20. */
  21. - (instancetype)initWithFps:(NSUInteger)fps codec:(long long)codec;
  22. /**
  23. Transforms the current wrapper instance to a native object,
  24. which is ready to be passed to XCTest APIs
  25. @param error If there was a failure converting the instance to a native object
  26. @returns Native object instance
  27. */
  28. - (nullable id)toNativeRequestWithError:(NSError **)error;
  29. @end
  30. NS_ASSUME_NONNULL_END