Implement pause and resume on iOS

This commit is contained in:
Michael Pfaff 2020-04-24 14:17:46 -04:00
parent 4c098c9468
commit 76066ac9eb
1 changed files with 4 additions and 0 deletions

View File

@ -70,6 +70,10 @@
- (void)onMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
if ([[call method] isEqualToString:@"postMessage"]) {
[self postMessage:call result:result];
} else if ([[call method] isEqualToString:@"resume"]) {
UnityResumeCommand();
} else if ([[call method] isEqualToString:@"pause"]) {
UnityPauseCommand();
} else {
result(FlutterMethodNotImplemented);
}