setPresence method

void setPresence(
  1. dynamic val
)

Sets metadata for the current session.

@param visible - Manually sets the information about the visibility of TalkJS. This is useful when TalkJS is hidden with CSS. TalkJS will assume that UIs marked visible: false cannot be seen, and thus messages arriving on this UI will not be marked as read until you set visible to true again.

@param custom - Additional parameter to store the custom fields, that you may want to use in the REST API call.

Implementation

external void setPresence(dynamic val);