Partager via


ChildAppWindow class

An object that application can utilize to establish communication with the child window it opened, which contains the corresponding task.

Methods

addEventListener(string, addEventListnerFunctionType)

Add a listener that will be called when an event is received from the ChildAppWindow.

postMessage(any, onCompleteFunctionType)

Send a message to the ChildAppWindow.

Method Details

addEventListener(string, addEventListnerFunctionType)

Add a listener that will be called when an event is received from the ChildAppWindow.

function addEventListener(type: string, listener: addEventListnerFunctionType)

Parameters

type

string

The event to listen to. Currently the only supported type is 'message'.

listener
addEventListnerFunctionType

The listener that will be called

postMessage(any, onCompleteFunctionType)

Send a message to the ChildAppWindow.

function postMessage(message: any, onComplete?: onCompleteFunctionType)

Parameters

message

any

The message to send

onComplete
onCompleteFunctionType

The callback to know if the postMessage has been success/failed.