|
|
# Introduction
|
|
|
Controlling the Cameo apps is already a form of communication between the apps. We show here the common ways to make them communicate by using the communication patterns aka coms and the return value.
|
|
|
|
|
|
The following examples will only show string messages however any kind of serialization can be used: binary serialization with *Protobuf* or ascii serialization with *JSON*.
|
|
|
|
|
|
# Return value
|
|
|
First and easiest way to pass data from an app to another is to use the return value. When an app terminates it is possible to set a return value that will be published to all the instance references. We can extend the Java application of *App2*:
|
|
|
|
... | ... | |