套件 | com.adobe.mosaic.om.interfaces |
介面 | public interface IMessageBus |
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 9.5 |
執行階段版本: | AIR 2.6, Flash Player 10.2 |
IMessageBus
interface provides methods for handling inter-tile communication.
相關 API 元素
方法 | 定義自 | ||
---|---|---|---|
Adds a listener for a namespace and name combination. | IMessageBus | ||
Removes a listener for a namespace and name combination. | IMessageBus | ||
Sends a message to all the tiles in a composite application. | IMessageBus |
addMessageListener | () | 方法 |
public function addMessageListener(namespace:String, name:String, handler:Function):void
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 9.5 |
執行階段版本: | AIR 2.6, Flash Player 10.2 |
Adds a listener for a namespace and name combination.
After calling this method, the listener is called anytime a message that matches the namespace and name is sent by any other tile in the application.
參數
namespace:String — The namespace of the message.
| |
name:String — The name of the message to listen for.
| |
handler:Function — A function that triggers once for each sendMessage that is called that matches the namespace and name. The function takes one parameter of type Message .
|
相關 API 元素
removeMessageListener | () | 方法 |
public function removeMessageListener(namespace:String, name:String, handler:Function):void
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 9.5 |
執行階段版本: | AIR 2.6, Flash Player 10.2 |
Removes a listener for a namespace and name combination.
After calling this method, the listener is no longer called anytime a message that matches the namespace and name is sent by any other tile in the application.
參數
namespace:String — The namespace of the message.
| |
name:String — The name of the message to no longer listen for.
| |
handler:Function — The function to no longer be called.
|
相關 API 元素
sendMessage | () | 方法 |
public function sendMessage(message:Message):void
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 9.5 |
執行階段版本: | AIR 2.6, Flash Player 10.2 |
Sends a message to all the tiles in a composite application.
This is used to convey transitory information across all the tiles in the application. The messages are not kept or queued for later processing, they are only visible to tiles that are in the application at the time the message is sent.
參數
message:Message — The message to send.
|
Tue Jun 12 2018, 03:47 PM Z