Package com.openfin.desktop.channel
Interface ChannelAction
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ChannelActionThe ChannelAction interface should be implemented when registering actions byChannelProviderorChannelClient- Author:
- Anthony
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Objectinvoke(java.lang.String action, java.lang.Object payload, org.json.JSONObject senderIdentity)Channel action to be invoked.
-
-
-
Method Detail
-
invoke
java.lang.Object invoke(java.lang.String action, java.lang.Object payload, org.json.JSONObject senderIdentity)Channel action to be invoked.- Parameters:
action- Name of the action to be registeredpayload- Payload sent along when invoking the action.senderIdentity- Identity of the sender.- Returns:
- Result by invoking the action..
-
-