Edit in GitHubLog an issue

cc-everywhere


Class: ChannelMessageListener

Implements

Constructors

Constructor

Copied to your clipboard
new ChannelMessageListener(
sourceChannel,
targetProtocolVersion,
_filterRequestIdMismatch,
protocolHandlersModule?): ChannelMessageListener;

Parameters

ParameterTypeDefault value
sourceChannel
undefined
targetProtocolVersion
ProtocolVersion.V1_3
_filterRequestIdMismatch
boolean
false
protocolHandlersModule?
undefined

Returns

ChannelMessageListener

Methods

reset()

Copied to your clipboard
reset(): void;

Returns

void


didGetMessage()

Copied to your clipboard
didGetMessage<T>(message, requestId?): void;

Type Parameters

Type Parameter
T extends MessageType

Parameters

ParameterType
message
requestId?
string

Returns

void

Implementation of

IChannelMessengerDelegate.didGetMessage


setTarget()

Copied to your clipboard
setTarget(targetChannel, targetChannelInfo): void;

Parameters

ParameterType
targetChannel
targetChannelInfo

Returns

void


removeTarget()

Copied to your clipboard
removeTarget(targetChannel): void;

Parameters

ParameterType
targetChannel

Returns

void


hasTarget()

Copied to your clipboard
hasTarget(targetChannel): boolean;

Parameters

ParameterType
targetChannel

Returns

boolean


getTarget()

Copied to your clipboard
getTarget(targetChannel):
| undefined
| TargetChannelInfo;

Parameters

ParameterType
targetChannel

Returns

| undefined | TargetChannelInfo


addListenerForTarget()

Copied to your clipboard
addListenerForTarget(targetChannel, callback): void;

Parameters

ParameterType
targetChannel
callback

Returns

void


sendMessage()

Copied to your clipboard
sendMessage<T>(targetChannel, message): boolean;

Type Parameters

Type Parameter
T extends MessageType

Parameters

ParameterType
targetChannel
message

Returns

boolean


sendMessageCompat()

Copied to your clipboard
sendMessageCompat<T>(targetChannel, message): boolean;

Sends a message using a message channel that is compatible with older version of SDK.

Type Parameters

Type ParameterDescription
T extends MessageType
The type of the message being sent.

Parameters

ParameterTypeDescription
targetChannel
message
The message to send.

Returns

boolean

  • True if the message was successfully sent, false otherwise.

addListener()

Copied to your clipboard
addListener(
messageType,
listener,
messageFilter?): void;

Parameters

ParameterTypeDescription
messageType
Listener is invoked for incoming message of this message type.
listener
Callback function that is invoked when there is an incoming message.
messageFilter?
Filter the incoming message. If this function returns true the element is passed downstream, if it returns false the element is discarded.

Returns

void


removeListener()

Copied to your clipboard
removeListener(messageType, listener): void;

Parameters

ParameterType
messageType
listener

Returns

void


setRequestId()

Copied to your clipboard
setRequestId(requestId): void;

Parameters

ParameterType
requestId
string

Returns

void

  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2025 Adobe. All rights reserved.