107 NSString* method = call.
method;
109 if ([method isEqualToString:
@"SystemSound.play"]) {
110 [
self playSystemSound:args];
112 }
else if ([method isEqualToString:
@"HapticFeedback.vibrate"]) {
113 [
self vibrateHapticFeedback:args];
115 }
else if ([method isEqualToString:
@"SystemChrome.setPreferredOrientations"]) {
116 [
self setSystemChromePreferredOrientations:args];
118 }
else if ([method isEqualToString:
@"SystemChrome.setApplicationSwitcherDescription"]) {
119 [
self setSystemChromeApplicationSwitcherDescription:args];
121 }
else if ([method isEqualToString:
@"SystemChrome.setEnabledSystemUIOverlays"]) {
122 [
self setSystemChromeEnabledSystemUIOverlays:args];
124 }
else if ([method isEqualToString:
@"SystemChrome.setEnabledSystemUIMode"]) {
125 [
self setSystemChromeEnabledSystemUIMode:args];
127 }
else if ([method isEqualToString:
@"SystemChrome.restoreSystemUIOverlays"]) {
128 [
self restoreSystemChromeSystemUIOverlays];
130 }
else if ([method isEqualToString:
@"SystemChrome.setSystemUIOverlayStyle"]) {
131 [
self setSystemChromeSystemUIOverlayStyle:args];
133 }
else if ([method isEqualToString:
@"SystemNavigator.pop"]) {
134 NSNumber* isAnimated = args;
135 [
self popSystemNavigator:isAnimated.boolValue];
137 }
else if ([method isEqualToString:
@"Clipboard.getData"]) {
138 result([
self getClipboardData:args]);
139 }
else if ([method isEqualToString:
@"Clipboard.setData"]) {
140 [
self setClipboardData:args];
142 }
else if ([method isEqualToString:
@"Clipboard.hasStrings"]) {
143 result([
self clipboardHasStrings]);
144 }
else if ([method isEqualToString:
@"LiveText.isLiveTextInputAvailable"]) {
145 result(@([
self isLiveTextInputAvailable]));
146 }
else if ([method isEqualToString:
@"SearchWeb.invoke"]) {
147 [
self searchWeb:args];
149 }
else if ([method isEqualToString:
@"LookUp.invoke"]) {
150 [
self showLookUpViewController:args];
152 }
else if ([method isEqualToString:
@"Share.invoke"]) {
153 [
self showShareViewController:args];
155 }
else if ([method isEqualToString:
@"ContextMenu.showSystemContextMenu"]) {
156 [
self showSystemContextMenu:args];
158 }
else if ([method isEqualToString:
@"ContextMenu.hideSystemContextMenu"]) {
159 [
self hideSystemContextMenu];