implementations property
Implementation
late Map<String, Future<dynamic> Function(MethodCall)> implementations = {
'sessionDidLoad': (call) async {
Session session = Session._build(call.arguments);
_sessionDidLoadController.add(session);
},
'sessionDidUpdate': (call) async {
Session session = Session._build(call.arguments);
_sessionDidUpdateController.add(session);
},
'sessionDidEnd': (call) async {
Session session = Session._build(call.arguments);
_sessionDidEndController.add(session);
},
'ios_simulateTouch': (call) async {
_AgentTouchEvent touch = _AgentTouchEvent._build(call.arguments);
touch._simulateTouch();
},
'showSessionControls': (call) async {
Session session = Session._build(call.arguments);
if (_showSessionControlsController.hasListener) {
_showSessionControlsController.add(session);
return true;
} else {
return false;
}
},
'hideSessionControls': (call) async {
Session session = Session._build(call.arguments);
if (_hideSessionControlsController.hasListener) {
_hideSessionControlsController.add(session);
return true;
} else {
return false;
}
},
'handleSessionRequest': (call) async {
Session session = Session._build(call.arguments);
if (_handleSessionRequestController.hasListener) {
_handleSessionRequestController.add(session);
return true;
} else {
return false;
}
},
'handleRemoteControlRequest': (call) async {
Session session = Session._build(call.arguments);
if (_handleRemoteControlRequestController.hasListener) {
_handleRemoteControlRequestController.add(session);
return true;
} else {
return false;
}
},
};