The IChatSubscriptionListener interface allows applications to receive events
raised for a chat subscription.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public interface IChatSubscriptionListener : ISubscriptionListener
Public Interface IChatSubscriptionListener _ Implements ISubscriptionListener
public interface class IChatSubscriptionListener : ISubscriptionListener
Members
All Members | Methods | ||||
Icon | Member | Description |
---|---|---|
ChatMessageReceived(ISubscription, IChatEvent) |
Called when a new chat message is received from the Liberator. The properties on ev that
are populated with relevant data are User, Time and
Message.
| |
ChatUserLoggedIn(ISubscription, IChatEvent) |
Called when a StreamLink user enters the chat by subscribing to the chat object. The User property of
ev is the username of the newly logged in chat user.
| |
ChatUserLoggedOut(ISubscription, IChatEvent) |
Called when a StreamLink user leaves the chat by discarding the chat object. The User property of
ev is the username of the chat user who logged out.
| |
ChatUsernameNotification(ISubscription, IChatEvent) |
Called received when you first subscribe to a chat object in order to inform you of your chat username. The chat
username is assigned by Liberator and will be of the form StreamLinkUserName-Number. The User
property of ev is your chat username.
| |
SubscriptionErrorReceived(ISubscription, ISubscriptionErrorEvent) |
Handles an event raised when there is an error in a subscription.
(Inherited from ISubscriptionListener.) | |
SubscriptionStatusUpdated(ISubscription, ISubscriptionStatusEvent) |
Handles an event raised when there is a change in the status of a subscription.
(Inherited from ISubscriptionListener.) |
Remarks
You must define a class that implements this interface. You implement each of the callback methods for the interface so that they handle the received events according to the needs of your application.
Note: StreamLink queues events in the order they were raised and passes each event in turn to an appropriate callback method of the relevant listener. All listener callbacks execute in the same dedicated worker thread, so while a particular callback method is running no other callbacks will be invoked.