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