This repository was archived by the owner on Feb 22, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 19
19
* The expectation is fullfilled when a result is called allowing tests to await the result in an
20
20
* asynchronous manner.
21
21
*/
22
- - (instancetype _Nonnull )initWithExpectation : (nonnull XCTestExpectation *)expectation ;
22
+ - (nonnull instancetype )initWithExpectation : (nonnull XCTestExpectation *)expectation ;
23
23
@end
24
24
25
25
#endif /* MockFLTThreadSafeFlutterResult_h */
Original file line number Diff line number Diff line change 18
18
// / Hide the default public constructor.
19
19
- (instancetype )init NS_UNAVAILABLE;
20
20
21
- // / Exposes the [CameraPlugin handleMethodCallAsync:result:] method for unit testing.
22
- // /
23
- // / This method should always be dispatched on a background queue to prevent deadlocks.
24
21
22
+ // / Handles `FlutterMethodCall`s and ensures result is send on the main dispatch queue.
23
+ // /
24
+ // / @param call The method call command object.
25
+ // / @param result A wrapper around the `FlutterResult` callback which ensures the callback is called on the main dispatch queue.
25
26
- (void )handleMethodCallAsync : (FlutterMethodCall *)call result : (FLTThreadSafeFlutterResult *)result ;
26
27
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 that triggered the orientation change.
28
31
- (void )orientationChanged : (NSNotification *)notification ;
29
32
30
33
@end
You can’t perform that action at this time.
0 commit comments