Hi,
Is there an official way via the API to send messages between 2 different addons? I'm trying to avoid TCP calls as I'm using the Simplified API.
Thanks,
How to send messages between addons?
-
- Site Admin
- Posts: 279
- Joined: Mon Jun 11, 2018 11:44 am
- Has thanked: 2 times
- Been thanked: 31 times
Re: How to send messages between addons?
Hi,
Yes, just use Layer1ApiUserInterModuleMessage. Send it down the stack, then catch it when it goes back up. You just need to subscribe to core API as Layer1ApiAdminListener using Api#getProvider#addListener
Yes, just use Layer1ApiUserInterModuleMessage. Send it down the stack, then catch it when it goes back up. You just need to subscribe to core API as Layer1ApiAdminListener using Api#getProvider#addListener
Re: How to send messages between addons?
Hi,
Thanks for your reply. I was able to figure it out based on your message.
Thanks for your reply. I was able to figure it out based on your message.
-
- Posts: 551
- Joined: Mon Jul 09, 2018 11:18 am
- Has thanked: 25 times
- Been thanked: 86 times
Re: How to send messages between addons?
Hi, for Core API you may implement the MessageListener interface to receive messages.