AvionicsRouteRequested

This event is sent to all views and instruments when a user clicks the "Request Route From Avionics" button on the EFB. The instrument responsible for the flight plan should respond with the REPLY_TO_AVIONICS_ROUTE_REQUEST call containing the flight plan route in the instrument and the ID of the received request.

 

Example
//listener has been registered earlier with RegisterViewListener
listener.on('AvionicsRouteRequested', async (requestId: number) => {
  //Do work here as required to put together the route to respond with
  //This is just an example, this buildRoute function is not part of the API
  const route = await this.buildRoute();
  await Coherent.call('RESPOND_TO_AVIONICS_ROUTE_REQUEST', route, requestId);
});

 

Callback Parameters
Parameter Description Type
requestId The ID of the request that is being responded to. Integer