Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 41e319e

Browse files
committed
Adjust name
1 parent ecaa2d6 commit 41e319e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

shell/platform/darwin/macos/framework/Source/FlutterEngine.mm

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ - (instancetype)initWithEngine:(FlutterEngine*)engine
181181

182182
// This is called by the method call handler in the engine when the application
183183
// requests termination itself.
184-
- (void)requestAppExit:(NSDictionary<NSString*, id>*)arguments result:(FlutterResult)result {
184+
- (void)handleRequestAppExitMethodCall:(NSDictionary<NSString*, id>*)arguments
185+
result:(FlutterResult)result {
185186
NSString* type = arguments[@"type"];
186187
// Ignore the "exitCode" value in the arguments because AppKit doesn't have
187188
// any good way to set the process exit code other than calling exit(), and
@@ -963,7 +964,7 @@ - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
963964
} else if ([call.method isEqualToString:@"Clipboard.hasStrings"]) {
964965
result(@{@"value" : @([self clipboardHasStrings])});
965966
} else if ([call.method isEqualToString:@"System.exitApplication"]) {
966-
[[self terminationHandler] requestAppExit:call.arguments result:result];
967+
[[self terminationHandler] handleRequestAppExitMethodCall:call.arguments result:result];
967968
} else {
968969
result(FlutterMethodNotImplemented);
969970
}

shell/platform/darwin/macos/framework/Source/FlutterEngine_Internal.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ typedef NS_ENUM(NSInteger, FlutterAppExitResponse) {
5454
@interface FlutterEngineTerminationHandler : NSObject
5555
- (instancetype)initWithEngine:(FlutterEngine*)engine
5656
terminator:(nullable FlutterTerminationCallback)terminator;
57-
- (void)requestAppExit:(NSDictionary<NSString*, id>*)data result:(FlutterResult)result;
57+
- (void)handleRequestAppExitMethodCall:(NSDictionary<NSString*, id>*)data
58+
result:(FlutterResult)result;
5859
- (void)requestApplicationTermination:(FlutterApplication*)sender
5960
exitType:(FlutterAppExitType)type
6061
result:(nullable FlutterResult)result;

0 commit comments

Comments
 (0)