Tutorial: interop.handleInfoForIntent


Responsible for returning information on a particular Intent. Must be overridden.

Whenever InteropClient.getInfoForIntent is called this function will fire. The options argument gives you access to the intent name and any optional context that was passed and clientIdentity is the identity of the client that made the call. Ideally here you would fetch the info for the intent and return it with the shape that the InteropClient.getInfoForIntent call is expecting.

To make this call FDC3-Compliant it would need to return an App Intent:

// {
//     intent: { name: "StartChat", displayName: "Chat" },
//     apps: [{ name: "Skype" }, { name: "Symphony" }, { name: "Slack" }]
// }

More information on the AppIntent type can be found in the FDC3 documentation.


    interopOverride: async (InteropBroker) => {
        class Override extends InteropBroker {
            async handleInfoForIntent(options, clientIdentity) {
                // Your code goes here. 
        return new Override();