Twitch SDK (Internal)
Public Types | Public Member Functions | Protected Attributes | Private Attributes | List of all members
ttv::binding::java::JavaChatChannelListenerProxy Class Reference

#include <java_chatchannellistenerproxy.h>

Inheritance diagram for ttv::binding::java::JavaChatChannelListenerProxy:
ttv::binding::java::NativeListenerProxy< IChatChannelListener > ttv::chat::IChatChannelListener

Public Types

typedef std::function< void(UserId userId, ChannelId channelId)> ChannelDisconnectedFunc
 

Public Member Functions

 JavaChatChannelListenerProxy ()
 
void SetChatApi (std::shared_ptr< ChatAPI > api)
 
void SetChannelDisconnectedFunc (ChannelDisconnectedFunc func)
 
virtual void ChatChannelStateChanged (UserId userId, ChannelId channelId, ChatChannelState state, TTV_ErrorCode ec) override
 
virtual void ChatChannelInfoChanged (UserId userId, ChannelId channelId, const ChatChannelInfo &channelInfo) override
 
virtual void ChatChannelRestrictionsChanged (UserId userId, ChannelId channelId, const ChatChannelRestrictions &restrictions) override
 
virtual void ChatChannelLocalUserChanged (UserId userId, ChannelId channelId, const ChatUserInfo &userInfo) override
 
virtual void ChatChannelMessagesReceived (UserId userId, ChannelId channelId, const std::vector< LiveChatMessage > &messageList) override
 
virtual void ChatChannelSubscriptionNoticeReceived (UserId userId, ChannelId channelId, const SubscriptionNotice &notice) override
 
virtual void ChatChannelFirstTimeChatterNoticeReceived (UserId userId, ChannelId channelId, const FirstTimeChatterNotice &notice) override
 
virtual void ChatChannelRaidNoticeReceived (UserId userId, ChannelId channelId, const RaidNotice &notice) override
 
virtual void ChatChannelUnraidNoticeReceived (UserId userId, ChannelId channelId, const UnraidNotice &notice) override
 
virtual void ChatChannelMessagesCleared (UserId userId, ChannelId channelId) override
 
virtual void ChatChannelUserMessagesCleared (UserId userId, ChannelId channelId, UserId clearUserId) override
 
virtual void ChatChannelHostTargetChanged (UserId userId, ChannelId channelId, const std::string &targetChannel, uint32_t numViewers) override
 
virtual void ChatChannelNoticeReceived (UserId userId, ChannelId channelId, const std::string &id, const std::map< std::string, std::string > &params) override
 
void SetListener (jobject jListener)
 
jobject GetListener () const
 

Protected Attributes

GlobalJavaObjectReference mJavaListener
 
JavaClassInfo mListenerInfo
 

Private Attributes

std::weak_ptr< ChatAPImChatApi
 
ChannelDisconnectedFunc mChannelDisconnectedCallback
 

Member Typedef Documentation

◆ ChannelDisconnectedFunc

Constructor & Destructor Documentation

◆ JavaChatChannelListenerProxy()

ttv::binding::java::JavaChatChannelListenerProxy::JavaChatChannelListenerProxy ( )

Member Function Documentation

◆ ChatChannelFirstTimeChatterNoticeReceived()

virtual void ttv::binding::java::JavaChatChannelListenerProxy::ChatChannelFirstTimeChatterNoticeReceived ( UserId  userId,
ChannelId  channelId,
const FirstTimeChatterNotice notice 
)
overridevirtual

◆ ChatChannelHostTargetChanged()

virtual void ttv::binding::java::JavaChatChannelListenerProxy::ChatChannelHostTargetChanged ( UserId  userId,
ChannelId  channelId,
const std::string &  targetChannel,
uint32_t  numViewers 
)
overridevirtual

◆ ChatChannelInfoChanged()

virtual void ttv::binding::java::JavaChatChannelListenerProxy::ChatChannelInfoChanged ( UserId  userId,
ChannelId  channelId,
const ChatChannelInfo channelInfo 
)
overridevirtual

◆ ChatChannelLocalUserChanged()

virtual void ttv::binding::java::JavaChatChannelListenerProxy::ChatChannelLocalUserChanged ( UserId  userId,
ChannelId  channelId,
const ChatUserInfo userInfo 
)
overridevirtual

◆ ChatChannelMessagesCleared()

virtual void ttv::binding::java::JavaChatChannelListenerProxy::ChatChannelMessagesCleared ( UserId  userId,
ChannelId  channelId 
)
overridevirtual

Fired when all messages in the channel should be cleared.

Implements ttv::chat::IChatChannelListener.

◆ ChatChannelMessagesReceived()

virtual void ttv::binding::java::JavaChatChannelListenerProxy::ChatChannelMessagesReceived ( UserId  userId,
ChannelId  channelId,
const std::vector< LiveChatMessage > &  messageList 
)
overridevirtual

◆ ChatChannelNoticeReceived()

virtual void ttv::binding::java::JavaChatChannelListenerProxy::ChatChannelNoticeReceived ( UserId  userId,
ChannelId  channelId,
const std::string &  id,
const std::map< std::string, std::string > &  params 
)
overridevirtual

◆ ChatChannelRaidNoticeReceived()

virtual void ttv::binding::java::JavaChatChannelListenerProxy::ChatChannelRaidNoticeReceived ( UserId  userId,
ChannelId  channelId,
const RaidNotice notice 
)
overridevirtual

◆ ChatChannelRestrictionsChanged()

virtual void ttv::binding::java::JavaChatChannelListenerProxy::ChatChannelRestrictionsChanged ( UserId  userId,
ChannelId  channelId,
const ChatChannelRestrictions restrictions 
)
overridevirtual

◆ ChatChannelStateChanged()

virtual void ttv::binding::java::JavaChatChannelListenerProxy::ChatChannelStateChanged ( UserId  userId,
ChannelId  channelId,
ChatChannelState  state,
TTV_ErrorCode  ec 
)
overridevirtual

◆ ChatChannelSubscriptionNoticeReceived()

virtual void ttv::binding::java::JavaChatChannelListenerProxy::ChatChannelSubscriptionNoticeReceived ( UserId  userId,
ChannelId  channelId,
const SubscriptionNotice notice 
)
overridevirtual

◆ ChatChannelUnraidNoticeReceived()

virtual void ttv::binding::java::JavaChatChannelListenerProxy::ChatChannelUnraidNoticeReceived ( UserId  userId,
ChannelId  channelId,
const UnraidNotice notice 
)
overridevirtual

◆ ChatChannelUserMessagesCleared()

virtual void ttv::binding::java::JavaChatChannelListenerProxy::ChatChannelUserMessagesCleared ( UserId  userId,
ChannelId  channelId,
UserId  clearUserId 
)
overridevirtual

Fired when all messages from the given user should be cleared in the given channel.

Implements ttv::chat::IChatChannelListener.

◆ GetListener()

jobject ttv::binding::java::NativeListenerProxy< IChatChannelListener >::GetListener ( ) const
inlineinherited

◆ SetChannelDisconnectedFunc()

void ttv::binding::java::JavaChatChannelListenerProxy::SetChannelDisconnectedFunc ( ChannelDisconnectedFunc  func)
inline

◆ SetChatApi()

void ttv::binding::java::JavaChatChannelListenerProxy::SetChatApi ( std::shared_ptr< ChatAPI api)
inline

◆ SetListener()

void ttv::binding::java::NativeListenerProxy< IChatChannelListener >::SetListener ( jobject  jListener)
inlineinherited

Member Data Documentation

◆ mChannelDisconnectedCallback

ChannelDisconnectedFunc ttv::binding::java::JavaChatChannelListenerProxy::mChannelDisconnectedCallback
private

◆ mChatApi

std::weak_ptr<ChatAPI> ttv::binding::java::JavaChatChannelListenerProxy::mChatApi
private

◆ mJavaListener

◆ mListenerInfo


The documentation for this class was generated from the following file: