FBXCDeviceEvent.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  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. @protocol FBXCDeviceEvent
  12. @property unsigned long long type; // @synthesize type=_type;
  13. @property double rotation; // @synthesize rotation=_rotation;
  14. @property double duration; // @synthesize duration=_duration;
  15. @property unsigned int usage; // @synthesize usage=_usage;
  16. @property unsigned int eventPage; // @synthesize eventPage=_eventPage;
  17. @property(readonly) BOOL isButtonHoldEvent;
  18. + (id)deviceEventForDigitalCrownRotation:(double)arg1 velocity:(double)arg2;
  19. + (id)deviceEventWithPage:(unsigned int)arg1 usage:(unsigned int)arg2 duration:(double)arg3;
  20. - (void)dispatch;
  21. @end
  22. _Nullable id<FBXCDeviceEvent> FBCreateXCDeviceEvent(unsigned int page,
  23. unsigned int usage,
  24. double duration,
  25. NSError **error);
  26. NS_ASSUME_NONNULL_END