sendMetadata

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

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

Return

{@code true} if the message could be sent successfully.

See also

#sendMessage(String)

#sendMessage(String)

Parameters

metadata

The metadata to send