Pub Sub Publish Options
class PubSubPublishOptions
Configuration options for publishing a message via PubSub.
Set options such as message persistence and targeted delivery before publishing.
Code Example:
try {
PubSubPublishOptions options = new PubSubPublishOptions();
options.setPersist(true);
options.setSendOnly(new String[]{ participantId1, participantId2 });
meeting.pubSub.publish("CHAT", "Hello!", new JSONObject(), options);
} catch (Exception e) {
Log.d("VideoSDK", "publish failed: " + e.getMessage());
}
Content copied to clipboard
See also
Meeting.PubSub.publish()