App — Listen

The LiSA Player dispatches a Listen message upon initialization to indicate its readiness for communication with the host app or environment.

The host app or environment must wait for the Listen message before sending any messages to the LiSA Player. Otherwise, the player may not receive them.

This message is sent by the LiSA Player to the host app / environment.

Properties

Along with all standard Message properties, a Listen message includes the following additional properties:

Name
Type
Description

messageType

Required.

lsc:app:listen

Legacy Properties

circle-exclamation
Name
Type
Description

action

Required.

ready ⚠️ Please use messageType instead.

target

Required.

app ⚠️ Please use messageType instead.


Type Definition

interface AppListenMessage extends Omit<
  Message,
  'messageType' | 'sender'
> {
  messageType: 'lsc:app:listen';
  sender: 'LiSA';
}

Examples

Last updated