sendMessage

abstract fun sendMessage(name: String, message: String?)

Sends a message to the application.

Sends a custom message with a name to the application. The app can receive the message using the AdEventListener.rendererMessageReceived method.

Can be useful when you want to notify the application of important events in your renderer.

Parameters

name

The name of the message.

message

An optional message related to an event.