Twitch SDK (Internal)
Classes | Namespaces | Functions | Variables
java_chatutil.h File Reference
#include "twitchsdk/core/java_utility.h"
#include "twitchsdk/chat/chattypes.h"
#include "twitchsdk/chat/chatmessagehandler.h"
#include "twitchsdk/chat/chatroommessagehandler.h"

Go to the source code of this file.

Classes

struct  ttv::binding::java::ChatApiContext
 
struct  ttv::binding::java::ChatMessageHandlerContext
 
struct  ttv::binding::java::ChatRoomMessageHandlerContext
 

Namespaces

 ttv
 JSON (JavaScript Object Notation).
 
 ttv::chat
 
 ttv::binding
 
 ttv::binding::java
 

Functions

void ttv::binding::java::LoadAllChatJavaClassInfo (JNIEnv *jEnv)
 
jobject ttv::binding::java::GetJavaInstance_ChatUserInfo (JNIEnv *jEnv, const ChatUserInfo &user)
 
jobject ttv::binding::java::GetJavaInstance_ChatUserInfoArray (JNIEnv *jEnv, const std::vector< ChatUserInfo > &list)
 
jobject ttv::binding::java::GetJavaInstance_ChatChannelInfo (JNIEnv *jEnv, const ChatChannelInfo &channelInfo)
 
jobject ttv::binding::java::GetJavaInstance_ChatChannelRestrictions (JNIEnv *jEnv, const ChatChannelRestrictions &restrictions)
 
jobject ttv::binding::java::GetJavaInstance_ChatUserMode (JNIEnv *jEnv, const UserMode &mode)
 
jobject ttv::binding::java::GetJavaInstance_ChatSubscriptionStatus (JNIEnv *jEnv, const SubscriptionStatus &status)
 
jobject ttv::binding::java::GetJavaInstance_ChatSubscriptionNotice (JNIEnv *jEnv, const SubscriptionNotice &notice)
 
jobject ttv::binding::java::GetJavaInstance_ChatSubscriptionNoticeRecipient (JNIEnv *jEnv, const SubscriptionNotice::Recipient &recipient)
 
jobject ttv::binding::java::GetJavaInstance_ChatFirstTimeChatterNotice (JNIEnv *jEnv, const FirstTimeChatterNotice &notice)
 
jobject ttv::binding::java::GetJavaInstance_ChatRaidNotice (JNIEnv *jEnv, const RaidNotice &notice)
 
jobject ttv::binding::java::GetJavaInstance_ChatUnraidNotice (JNIEnv *jEnv, const UnraidNotice &notice)
 
jobject ttv::binding::java::GetJavaInstance_ChatRestrictionReason (JNIEnv *jEnv, const RestrictionReason &reason)
 
jobject ttv::binding::java::GetJavaInstance_ChatTokenizationOptions (JNIEnv *jEnv, const TokenizationOptions &options)
 
jobject ttv::binding::java::GetJavaInstance_ChatMessageFlags (JNIEnv *jEnv, const MessageInfo::Flags &flags)
 
jobject ttv::binding::java::GetJavaInstance_ChatMessageToken (JNIEnv *jEnv, const MessageToken &token)
 
jobject ttv::binding::java::GetJavaInstance_ChatMessageBadge (JNIEnv *jEnv, const MessageBadge &badge)
 
jobject ttv::binding::java::GetJavaInstance_ChatMessageInfo (JNIEnv *jEnv, const MessageInfo &msg)
 
jobject ttv::binding::java::GetJavaInstance_ChatLiveMessage (JNIEnv *jEnv, const LiveChatMessage &msg)
 
jobject ttv::binding::java::GetJavaInstance_ChatLiveMessageArray (JNIEnv *jEnv, const std::vector< LiveChatMessage > &messageList)
 
jobject ttv::binding::java::GetJavaInstance_ChatWhisperMessage (JNIEnv *jEnv, const WhisperMessage &msg)
 
jobject ttv::binding::java::GetJavaInstance_ChatWhisperMessageArray (JNIEnv *jEnv, const std::vector< WhisperMessage > &messageList)
 
jobject ttv::binding::java::GetJavaInstance_ChatBadgeImage (JNIEnv *jEnv, const BadgeImage &image)
 
jobject ttv::binding::java::GetJavaInstance_ChatBadgeVersion (JNIEnv *jEnv, const BadgeVersion &badgeVersion)
 
jobject ttv::binding::java::GetJavaInstance_ChatBadge (JNIEnv *jEnv, const Badge &badge)
 
jobject ttv::binding::java::GetJavaInstance_ChatBadgeSet (JNIEnv *jEnv, const BadgeSet &badgeSet)
 
jobject ttv::binding::java::GetJavaInstance_ChatEmoticon (JNIEnv *jEnv, const Emoticon &emoticon)
 
jobject ttv::binding::java::GetJavaInstance_ChatEmoticonSet (JNIEnv *jEnv, const EmoticonSet &emoticonSet)
 
jobject ttv::binding::java::GetJavaInstance_ChatThreadData (JNIEnv *jEnv, const ThreadData &thread)
 
jobject ttv::binding::java::GetJavaInstance_ChatThreadDataArray (JNIEnv *jEnv, const std::vector< ThreadData > &list)
 
jobject ttv::binding::java::GetJavaInstance_ChatUnreadThreadCounts (JNIEnv *jEnv, const UnreadThreadCounts &counts)
 
jobject ttv::binding::java::GetJavaInstance_ChatBitsAction (JNIEnv *jEnv, const BitsConfiguration::Action &action)
 
jobject ttv::binding::java::GetJavaInstance_ChatBitsImage (JNIEnv *jEnv, const BitsConfiguration::BitsImage &image)
 
jobject ttv::binding::java::GetJavaInstance_ChatBitsImageTier (JNIEnv *jEnv, const BitsConfiguration::ImageTier &tier)
 
jobject ttv::binding::java::GetJavaInstance_ChatBitsConfiguration (JNIEnv *jEnv, const std::shared_ptr< BitsConfiguration > &config)
 
jobject ttv::binding::java::GetJavaInstance_ChatRaidStatus (JNIEnv *jEnv, const RaidStatus &val)
 
jobject ttv::binding::java::GetJavaInstance_ChatReplayState (JNIEnv *jEnv, ChatReplayState val)
 
jobject ttv::binding::java::GetJavaInstance_ChatReplayMessage (JNIEnv *jEnv, const ReplayMessage &msg)
 
jobject ttv::binding::java::GetJavaInstance_ChatReplayMessageArray (JNIEnv *jEnv, const std::vector< ReplayMessage > &value)
 
jobject ttv::binding::java::GetJavaInstance_ChatBadgeEntitlement (JNIEnv *jEnv, const BadgeEntitlement &badgeEntitlement)
 
jobject ttv::binding::java::GetJavaInstance_ChatBitsReceivedEvent (JNIEnv *jEnv, const BitsReceivedEvent &bitsReceivedEvent)
 
jobject ttv::binding::java::GetJavaInstance_ChatBitsSentEvent (JNIEnv *jEnv, const BitsSentEvent &bitsSentEvent)
 
jobject ttv::binding::java::GetJavaInstance_ChatFollowerAddedEvent (JNIEnv *jEnv, const FollowerAddedEvent &followerAddedEvent)
 
jobject ttv::binding::java::GetJavaInstance_ChatSubscriberAddedEvent (JNIEnv *jEnv, const SubscriberAddedEvent &subscriberAddedEvent)
 
jobject ttv::binding::java::GetJavaInstance_ChatRoomInfo (JNIEnv *jEnv, const ChatRoomInfo &value)
 
jobject ttv::binding::java::GetJavaInstance_ChatRoomMessage (JNIEnv *jEnv, const ChatRoomMessage &value)
 
jobject ttv::binding::java::GetJavaInstance_ChatRoomView (JNIEnv *jEnv, const ChatRoomView &value)
 
jobject ttv::binding::java::GetJavaInstance_ChatRoomPermissions (JNIEnv *jEnv, const ChatRoomPermissions &value)
 
jobject ttv::binding::java::GetJavaInstance_RoomMentionInfo (JNIEnv *jEnv, const RoomMentionInfo &value)
 
jobject ttv::binding::java::GetJavaInstance_ChatRoomMessageHandlerCommandError (JNIEnv *jEnv, ChatRoomMessageHandler::CommandError value)
 
jobject ttv::binding::java::GetJavaInstance_SendRoomMessageError (JNIEnv *jEnv, const SendRoomMessageError &value)
 
jobject ttv::binding::java::GetJavaInstance_CreateRoomError (JNIEnv *jEnv, const CreateRoomError &value)
 
jobject ttv::binding::java::GetJavaInstance_UpdateRoomError (JNIEnv *jEnv, const UpdateRoomError &value)
 
jobject ttv::binding::java::GetJavaInstance_UpdateRoomModesError (JNIEnv *jEnv, const UpdateRoomModesError &value)
 
jobject ttv::binding::java::GetJavaInstance_BanUserError (JNIEnv *jEnv, const BanUserError &value)
 
jobject ttv::binding::java::GetJavaInstance_UnbanUserError (JNIEnv *jEnv, const UnbanUserError &value)
 
jobject ttv::binding::java::GetJavaInstance_HostTargetChange (JNIEnv *jEnv, const HostTargetChange &value)
 
jobject ttv::binding::java::GetJavaInstance_ModUserError (JNIEnv *jEnv, const ModUserError &value)
 
jobject ttv::binding::java::GetJavaInstance_UnmodUserError (JNIEnv *jEnv, const UnmodUserError &value)
 
void ttv::binding::java::GetNativeInstance_ChatTokenizationOptions (JNIEnv *jEnv, jobject jOptions, TokenizationOptions &options)
 
void ttv::binding::java::GetNativeInstance_ChatFeatureFlags (JNIEnv *jEnv, jobject jFlags, FeatureFlags &flags)
 

Variables

JavaNativeProxyRegistry< ttv::chat::ChatAPI, ChatApiContext > ttv::binding::java::gChatApiNativeProxyRegistry
 
JavaNativeProxyRegistry< ttv::chat::IChatReplay, ChatApiContext > ttv::binding::java::gChatReplayNativeProxyRegistry
 
JavaNativeProxyRegistry< ttv::chat::BitsConfiguration, ChatApiContext > ttv::binding::java::gChatBitsConfigurationNativeProxyRegistry
 
JavaNativeProxyRegistry< ttv::chat::IChatRaid, ChatApiContext > ttv::binding::java::gIChatRaidInstanceRegistry
 
JavaNativeProxyRegistry< ttv::chat::IChannelChatRoomManager, ChatApiContext > ttv::binding::java::gIChannelChatRoomManagerInstanceRegistry
 
JavaNativeProxyRegistry< ttv::chat::IChatRoom, ChatApiContext > ttv::binding::java::gIChatRoomInstanceRegistry
 
JavaNativeProxyRegistry< ttv::chat::IChatRoomNotifications, ChatApiContext > ttv::binding::java::gIChatRoomNotificationsInstanceRegistry
 
JavaNativeProxyRegistry< ttv::chat::IBitsStatus, ChatApiContext > ttv::binding::java::gIBitsStatusInstanceRegistry
 
JavaNativeProxyRegistry< ttv::chat::IFollowersStatus, ChatApiContext > ttv::binding::java::gIFollowersStatusInstanceRegistry
 
JavaNativeProxyRegistry< ttv::chat::ISubscribersStatus, ChatApiContext > ttv::binding::java::gISubscribersStatusInstanceRegistry
 
JavaNativeProxyRegistry< ttv::chat::IChatChannelProperties, ChatApiContext > ttv::binding::java::gIChatChannelPropertiesInstanceRegistry
 
JavaNativeProxyRegistry< ChatMessageHandler, ChatMessageHandlerContext > ttv::binding::java::gChatMessageHandlerRegistry
 
JavaNativeProxyRegistry< ChatRoomMessageHandler, ChatRoomMessageHandlerContext > ttv::binding::java::gChatRoomMessageHandlerRegistry
 

Class Documentation

◆ ttv::binding::java::ChatApiContext

struct ttv::binding::java::ChatApiContext
Class Members
map< ChannelId, shared_ptr
< JavaChatChannelListenerProxy > >
channelListeners
shared_ptr< ChatAPI > chatApi
shared_ptr
< JavaChatAPIListenerProxy >
nativeListener
map< UserId, shared_ptr
< JavaChatUserThreadsListenerProxy > >
userThreadsListeners

◆ ttv::binding::java::ChatMessageHandlerContext

struct ttv::binding::java::ChatMessageHandlerContext
Class Members
shared_ptr
< JavaChatMessageHandlerCallbacksProxy >
callbacks
shared_ptr< ChatMessageHandler > chatMessageHandler

◆ ttv::binding::java::ChatRoomMessageHandlerContext

struct ttv::binding::java::ChatRoomMessageHandlerContext
Class Members
shared_ptr
< JavaChatRoomMessageHandlerCallbacksProxy >
callbacks
shared_ptr
< ChatRoomMessageHandler >
chatRoomMessageHandler