mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-04 20:17:09 +00:00
fix(companion): synthesize gestures synchronously to avoid the async completion crash
This commit is contained in:
1 parent
c3e0de547e
commit
76cbf1a102
2 files changed
+7
-12
No files matched your search
@@ -18,10 +18,13 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@end
|
||||
|
||||
// A complete synthesized event composed of one or more pointer paths.
|
||||
// synthesizeWithError: delivers the event synchronously and returns whether it
|
||||
// succeeded, which avoids the asynchronous completion-block path.
|
||||
@interface XCSynthesizedEventRecord : NSObject
|
||||
- (instancetype)initWithName:(NSString *)name
|
||||
interfaceOrientation:(NSInteger)interfaceOrientation;
|
||||
- (void)addPointerEventPath:(XCPointerEventPath *)pointerEventPath;
|
||||
- (BOOL)synthesizeWithError:(NSError *_Nullable *_Nullable)error;
|
||||
@end
|
||||
|
||||
// The runner-side session that delivers synthesized events to the system under
|
||||
|
||||
Reference in new issue
Block a user