Breadcrumb
- Sabre Red 360 Software Development Kit Help
- Web Red Apps
- Sabre Red 360 Services
- IExternalCommunicationService
IExternalCommunicationService
The IExternalCommunicationService currently includes one method that allows to properly open a new window (or tab) based on your environment. Optionally it allows for message posting and listening between windows (or tabs).
Acquiring IExternalCommunicationService
In order to obtain IExternalCommunicationService and use it, you need to import it, e.g.
import {IExternalCommunicationService} from "sabre-ngv-communication/interfaces/IExternalCommunicationService";
Then obtain the service inside your source as below:
const externalCommunicationService: IExternalCommunicationService = getService(IExternalCommunicationService);
Available methods
Currently available methods:
openWindow |
---|
Opens up new browser window (or tab) and optionally allows for message posting and listening between windows (or tabs). Type Parameteres:
Optional Type Parameteres:
Returns: |
You can see service usage in com.sabre.redapp.example3.web.crosswindow sample.