Skip to main content

VivoxText

A class in Root.Township, Alta.Voice.

Client: wraps text messaging on a Vivox channel session, raising an event for each received message.

Constructors​

MemberWhat it is
VivoxText(IChannelSession session)Creates a VivoxText from session.

Fields​

1 private and internal field
MemberWhat it is
private IChannelSession sessionThe Vivox channel session.

Events​

MemberWhat it is
event Action<IChannelTextMessage> MessageReceivedRaised for each text message received on the channel.

Methods​

MemberWhat it is
IEnumerable<IChannelTextMessage> Queue() (iterator)Yields and removes every message waiting in the session's log.
async Task<bool> Send(string message)Sends a text message to the channel and returns whether it succeeded.
1 private and internal method
MemberWhat it is
private void MessageLogAdded(object sender, QueueItemAddedEventArgs<IChannelTextMessage> e)Session handler: raises MessageReceived and dequeues the message, but only when something is listening.

Used in​

Members of other types that take, return or hold a VivoxText: