This repository was archived by the owner on Feb 22, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 * The expectation is fullfilled when a result is called allowing tests to await the result in an
2020 * asynchronous manner.
2121 */
22- - (instancetype _Nonnull )initWithExpectation : (nonnull XCTestExpectation *)expectation ;
22+ - (nonnull instancetype )initWithExpectation : (nonnull XCTestExpectation *)expectation ;
2323@end
2424
2525#endif /* MockFLTThreadSafeFlutterResult_h */
Original file line number Diff line number Diff line change 1818// / Hide the default public constructor.
1919- (instancetype )init NS_UNAVAILABLE;
2020
21- // / Exposes the [CameraPlugin handleMethodCallAsync: result:] method for unit testing .
21+ // / Handles `FlutterMethodCall`s and ensures result is send on the main dispatch queue .
2222// /
23- // / This method should always be dispatched on a background queue to prevent deadlocks.
24-
23+ // / @param call The method call command object.
24+ // / @param result A wrapper around the `FlutterResult` callback which ensures the callback is called
25+ // / on the main dispatch queue.
2526- (void )handleMethodCallAsync : (FlutterMethodCall *)call result : (FLTThreadSafeFlutterResult *)result ;
2627
27- // / Exposes the [CameraPlugin orientationChanged:] method for unit testing.
28+ // / Called by the @c NSNotificationManager each time the device's orientation is changed.
29+ // /
30+ // / @param notification @c NSNotification instance containing a reference to the `UIDevice` object
31+ // / that triggered the orientation change.
2832- (void )orientationChanged : (NSNotification *)notification ;
2933
3034@end
You can’t perform that action at this time.
0 commit comments