sendMetadata

open fun sendMetadata(@NonNull metadata: Map<String, out Any>): Boolean

Deprecated

Serialization of unknown objects might lead to undefined behaviour. Use sendMessage(String) instead

Sends the given metadata wrapped in a metadata message object to the cast receiver on the configured message namespace. The provided metadata must be json serializable. Note: Must be called from the main thread!

Return

true if the message could be sent successfully.

Parameters

metadata

The metadata to send

See also