|
Stream Chat Unreal SDK
|
A component which allows for connecting to the Stream Chat API. Should be added to a client-side actor, e.g. HUD. More...
#include <StreamChatClientComponent.h>
Public Member Functions | |
| UStreamChatClientComponent () | |
| Initialize the component. Shouldn't be called directly. | |
| void | ConnectUser (const FUser &User, TUniquePtr< ITokenProvider > TokenProvider, TFunction< void(const FOwnUser &)> Callback={}) |
| Create a connection to the API for the given user and using a custom token provider. | |
| void | ConnectUser (const FUser &User, const FString &Token, TFunction< void(const FOwnUser &)> Callback={}) |
| Create a connection to the API for the given user and credentials. | |
| void | ConnectAnonymousUser (TFunction< void(const FOwnUser &)> Callback={}) |
| Create a connection to the API anonymously. | |
| void | ConnectGuestUser (const FUser &User, TFunction< void(const FOwnUser &)> Callback={}) |
| Create a connection to the API by creating a guest account. | |
| void | DisconnectUser () |
| Close the connection to the API and resets any state. | |
| void | UpsertUsers (const TArray< FUser > &Users) |
| Create or update one or more users. | |
| UChatChannel * | NewChat () |
| Create a null chat channel for starting a new chat/group. | |
| void | CancelNewChat () |
| Remove any null chat channels used for starting a new chat/group. | |
| void | QueryChannels (TOptional< FFilter > Filter={}, const TArray< FChannelSortOption > &SortOptions={}, const EChannelFlags Flags=EChannelFlags::State|EChannelFlags::Watch, const FPaginationOptions &PaginationOptions={}, TFunction< void(const TArray< UChatChannel * > &)> Callback={}) |
| Query the API for all channels which match the given filter. Will also automatically watch all channels. | |
| void | CreateChannel (const FChannelProperties &ChannelProperties, TFunction< void(UChatChannel *)> Callback) |
| Create a channel if it does not exist yet (if this user has the right permissions). | |
| void | WatchChannel (const FChannelProperties &ChannelProperties, TFunction< void(UChatChannel *)> Callback) |
| Create a channel if it does not exist yet (if this user has the right permissions), get data about the channel (including members, watchers and messages) and subscribe to future updates. | |
| void | QueryChannel (const FChannelProperties &ChannelProperties, const EChannelFlags Flags, TFunction< void(UChatChannel *)> Callback={}) |
| Create a channel if it does not exist yet (if this user has the right permissions). Includes options to get data about the channel (including members, watchers and messages), subscribe to future updates. | |
| void | QueryAdditionalChannels (int32 Limit=10, TFunction< void()> Callback={}) |
| Fetch more channels from the server. | |
| void | QueryUsers (const FFilter &Filter={}, const TArray< FUserSortOption > &Sort={}, bool bPresence=true, const TOptional< FPaginationOptions > PaginationOptions={}, TFunction< void(const TArray< FUserRef > &)> Callback={}) const |
| Search for users and see if they are online/offline. | |
| void | SearchMessages (const FFilter &ChannelFilter={}, const TOptional< FString > &Query={}, const TOptional< FFilter > &MessageFilter={}, const TArray< FMessageSortOption > &Sort={}, TOptional< uint32 > MessageLimit={}, TFunction< void(const TArray< FMessage > &)> Callback={}) const |
| Search all messages A channel filter is required. All other parameters are optional, but a minimum of either a query or message filter is additionally required. | |
| void | QueryThreads (const TOptional< FFilter > &Filter={}, const TArray< FThreadSortOption > &SortOptions={}, TOptional< uint32 > Limit={}, TOptional< uint32 > ReplyLimit={}, const TOptional< FString > &Next={}, TFunction< void(const TArray< FChatThread > &Threads, const FString &NextPage)> Callback={}) const |
| List the threads the current user participates in, across all of their channels. | |
| void | GetThread (const FString &ParentMessageId, TOptional< uint32 > ReplyLimit={}, TOptional< uint32 > ParticipantLimit={}, TFunction< void(const FChatThread &)> Callback={}) const |
| Fetch a single thread by the ID of the message which started it. | |
| void | MarkAllRead () const |
| Mark all channels as read for the current user. | |
| const TArray< UChatChannel * > & | GetChannels () const |
| void | AddDevice (const FString &DeviceId, EPushProvider PushProvider) const |
| Registering a device associates it with a user and tells the push provider to send new message notifications to the device. | |
| void | RemoveDevice (const FString &DeviceId) const |
| Unregistering a device removes the device from the user and stops further new message notifications. | |
| void | ListDevices (TFunction< void(TArray< FDevice >)> Callback) const |
| Returns a list of all available devices. | |
Blueprint | |
| void | ConnectUser (const FUser &User, const FString &Token, const UObject *WorldContextObject, FLatentActionInfo LatentInfo, FOwnUser &OutUser) |
| void | ConnectAnonymousUser (const UObject *WorldContextObject, FLatentActionInfo LatentInfo, FOwnUser &OutUser) |
| void | ConnectGuestUser (const FUser &User, const UObject *WorldContextObject, FLatentActionInfo LatentInfo, FOwnUser &OutUser) |
| void | QueryChannels (FFilter Filter, const TArray< FChannelSortOption > &SortOptions, const UObject *WorldContextObject, FLatentActionInfo LatentInfo, TArray< UChatChannel * > &OutChannels, UPARAM(meta=(Bitmask, BitmaskEnum=EChannelFlags)) const int32 Flags=3) |
| void | WatchChannel (const FChannelProperties &ChannelProperties, const UObject *WorldContextObject, FLatentActionInfo LatentInfo, UChatChannel *&OutChannel) |
Moderation | |
| void | BanUserBP (const FUserRef &User, FTimespan Timeout, const FString &Reason, bool bIpBan) const |
| Ban a user from app entirely When a user is banned, they will not be allowed to post messages until the ban is removed or expired but will be able to connect to Chat and to channels as before. | |
| void | BanUser (const FUserRef &User, const TOptional< FTimespan > &Timeout={}, const TOptional< FString > &Reason={}, bool bIpBan=false) const |
| void | UnbanUser (const FUserRef &User) const |
| Remove previously applied app-wide ban. | |
| void | ShadowBanUserBP (const FUserRef &User, FTimespan Timeout) const |
| Shadow ban a user from app entirely When a user is banned, they will not be allowed to post messages until the ban is removed or expired but will be able to connect to Chat and to channels as before. | |
| void | ShadowBanUser (const FUserRef &User, const TOptional< FTimespan > &Timeout={}) const |
| void | ShadowUnbanUser (const FUserRef &User) const |
| Remove previously applied app-wide shadow ban. | |
| void | QueryBannedUsers (const FFilter &Filter, const TArray< FBanSortOption > &SortOptions={}, const TOptional< FBanPaginationOptions > PaginationOptions={}, const TFunction< void(const TArray< FBan > &)> Callback={}) |
| Find and filter channel-scoped or global user bans. | |
| void | FlagMessage (const FMessage &Message, const FString &Reason, const TMap< FString, FString > &CustomData) const |
| Flag message for moderation. | |
| void | FlagMessage (const FMessage &Message, const FString &Reason=TEXT("")) const |
| void | UnflagMessage (const FMessage &Message) const |
| Withdraw a flag this user previously raised against a message. | |
| void | FlagUser (const FUserRef &User, const FString &Reason, const TMap< FString, FString > &CustomData) const |
| Flag user for moderation. | |
| void | FlagUser (const FUserRef &User, const FString &Reason=TEXT("")) const |
| Overload rather than a default argument, for the same reason as FlagMessage. | |
| void | UnflagUser (const FUserRef &User) const |
| Withdraw a flag this user previously raised against another user. | |
| void | MuteUserBP (const FUserRef &User, FTimespan Timeout) const |
| Mute the given user. | |
| void | MuteUser (const FUserRef &User, const TOptional< FTimespan > &Timeout={}) const |
| void | UnmuteUser (const FUserRef &User) const |
| Unmute a previously muted user. | |
| void | BlockUser (const FUserRef &User) const |
| Block a user. | |
| void | UnblockUser (const FUserRef &User) const |
| Unblock a previously blocked user. | |
| void | GetBlockedUsers (TFunction< void(const TArray< FUserBlock > &)> Callback={}) const |
| Get the users blocked by the currently connected user. | |
Static Public Member Functions | |
| static FString | DevToken (const FString &UserId) |
Public Attributes | |
| FString | ApiKey |
| FChannelsUpdatedDelegate | ChannelsUpdated |
| Fired when any of the channels we have locally change. | |
Events | |
| template<class TEvent > | |
| using | TEventMulticastDelegate = TMulticastDelegate<void(const TEvent& Event)> |
| template<class TEvent > | |
| using | TEventDelegate = typename TEventMulticastDelegate<TEvent>::FDelegate |
| template<class TEvent , class UserClass > | |
| using | TEventDelegateUObjectMethodPtr = typename TEventDelegate<TEvent>::template TMethodPtr<UserClass> |
| template<class TEvent , class UserClass > | |
| using | TEventDelegateSpMethodPtr = typename TEventDelegate<TEvent>::template TMethodPtr<UserClass> |
| template<class TEvent > | |
| FDelegateHandle | On (TEventDelegate< TEvent > Callback) |
| Subscribe to a client event using your own delegate object. | |
| template<class TEvent , class UserClass > | |
| TEnableIf< TIsDerivedFrom< UserClass, UObject >::IsDerived, FDelegateHandle >::Type | On (UserClass *Obj, TEventDelegateUObjectMethodPtr< TEvent, UserClass > Method) |
| template<class TEvent , class UserClass > | |
| TEnableIf<!TIsDerivedFrom< UserClass, UObject >::IsDerived, FDelegateHandle >::Type | On (UserClass *Obj, TEventDelegateSpMethodPtr< TEvent, UserClass > Method) |
| template<class TEvent , typename FunctorType , typename... VarTypes> | |
| TEnableIf< TIsInvocable< FunctorType, constTEvent &, VarTypes... >::Value, FDelegateHandle >::Type | On (FunctorType &&Functor, VarTypes... Vars) |
| template<class TEvent > | |
| bool | Unsubscribe (FDelegateHandle) const |
A component which allows for connecting to the Stream Chat API. Should be added to a client-side actor, e.g. HUD.
| void UStreamChatClientComponent::AddDevice | ( | const FString & | DeviceId, |
| EPushProvider | PushProvider ) const |
Registering a device associates it with a user and tells the push provider to send new message notifications to the device.
| DeviceId | Device-specific identifier |
| PushProvider | Which provider to use for push notifications |
| void UStreamChatClientComponent::BanUserBP | ( | const FUserRef & | User, |
| FTimespan | Timeout, | ||
| const FString & | Reason, | ||
| bool | bIpBan ) const |
Ban a user from app entirely When a user is banned, they will not be allowed to post messages until the ban is removed or expired but will be able to connect to Chat and to channels as before.
| User | User to ban |
| Timeout | Timeout of ban. User will be unbanned after this period of time (unlimited if zero) |
| Reason | Ban reason (optional) |
| bIpBan | Whether to perform IP ban or not |
| void UStreamChatClientComponent::BlockUser | ( | const FUserRef & | User | ) | const |
Block a user.
Every 1-on-1 channel shared with that user is hidden from the blocking user, and their events and push notifications no longer arrive. Group channels are unaffected.
| User | A reference to a user |
| void UStreamChatClientComponent::ConnectAnonymousUser | ( | const UObject * | WorldContextObject, |
| FLatentActionInfo | LatentInfo, | ||
| FOwnUser & | OutUser ) |
Create a connection to the API anonymously
| OutUser | Anonymous user info |
| void UStreamChatClientComponent::ConnectAnonymousUser | ( | TFunction< void(const FOwnUser &)> | Callback = {} | ) |
Create a connection to the API anonymously.
| Callback | Called when a response is received from the API |
| void UStreamChatClientComponent::ConnectGuestUser | ( | const FUser & | User, |
| const UObject * | WorldContextObject, | ||
| FLatentActionInfo | LatentInfo, | ||
| FOwnUser & | OutUser ) |
Create a connection to the API by creating a guest account
| User | Generally only the user id is required |
| OutUser | Guest user info |
| void UStreamChatClientComponent::ConnectGuestUser | ( | const FUser & | User, |
| TFunction< void(const FOwnUser &)> | Callback = {} ) |
Create a connection to the API by creating a guest account.
| User | Generally only the user id is required |
| Callback | Called when a response is received from the API |
| void UStreamChatClientComponent::ConnectUser | ( | const FUser & | User, |
| const FString & | Token, | ||
| const UObject * | WorldContextObject, | ||
| FLatentActionInfo | LatentInfo, | ||
| FOwnUser & | OutUser ) |
Create a connection to the API for the given user and credentials.
| User | Generally only the user id is required |
| Token | A JWT token for the given user |
| OutUser | Latest info of the logged in user |
| void UStreamChatClientComponent::ConnectUser | ( | const FUser & | User, |
| const FString & | Token, | ||
| TFunction< void(const FOwnUser &)> | Callback = {} ) |
Create a connection to the API for the given user and credentials.
| User | Generally only the user id is required |
| Token | A JWT token for the given user |
| Callback | Called when a response is received from the API |
| void UStreamChatClientComponent::ConnectUser | ( | const FUser & | User, |
| TUniquePtr< ITokenProvider > | TokenProvider, | ||
| TFunction< void(const FOwnUser &)> | Callback = {} ) |
Create a connection to the API for the given user and using a custom token provider.
| User | Generally only the user id is required |
| TokenProvider | Can be used to asynchronously generate tokens from your own backend |
| Callback | Called when a response is received from the API |
| void UStreamChatClientComponent::CreateChannel | ( | const FChannelProperties & | ChannelProperties, |
| TFunction< void(UChatChannel *)> | Callback ) |
Create a channel if it does not exist yet (if this user has the right permissions).
| ChannelProperties | Properties of the channel to create |
| Callback | Called when a response is received from the API |
| void UStreamChatClientComponent::FlagMessage | ( | const FMessage & | Message, |
| const FString & | Reason, | ||
| const TMap< FString, FString > & | CustomData ) const |
Flag message for moderation.
The flagged message reaches the review queue in the moderation dashboard. Flagging does not hide the message: that is a moderator's decision, or an automod rule's.
| Message | A reference to an existing message |
| Reason | Why the message was reported. Shown to moderators in the review queue. (optional) |
| CustomData | Extra key/value pairs to attach to the flag (optional) |
| void UStreamChatClientComponent::FlagMessage | ( | const FMessage & | Message, |
| const FString & | Reason = TEXT("") ) const |
Overload rather than a default argument, because UHT cannot parse a default value for a TMap parameter, and giving the Blueprint-facing function a different name would rename its node.
| void UStreamChatClientComponent::FlagUser | ( | const FUserRef & | User, |
| const FString & | Reason, | ||
| const TMap< FString, FString > & | CustomData ) const |
Flag user for moderation.
| User | A reference to a user |
| Reason | Why the user was reported. Shown to moderators in the review queue. (optional) |
| CustomData | Extra key/value pairs to attach to the flag (optional) |
| void UStreamChatClientComponent::GetBlockedUsers | ( | TFunction< void(const TArray< FUserBlock > &)> | Callback = {} | ) | const |
Get the users blocked by the currently connected user.
Also refreshes FOwnUser::BlockedUserIds, which nothing else populates: the API reports blocks only here and in the block/unblock responses. Call this once after connecting if you rely on FOwnUser::HasBlockedUser.
| Callback | Called with the blocks created by the current user |
| void UStreamChatClientComponent::GetThread | ( | const FString & | ParentMessageId, |
| TOptional< uint32 > | ReplyLimit = {}, | ||
| TOptional< uint32 > | ParticipantLimit = {}, | ||
| TFunction< void(const FChatThread &)> | Callback = {} ) const |
Fetch a single thread by the ID of the message which started it.
| ParentMessageId | ID of the message which started the thread |
| ReplyLimit | How many of the latest replies to include |
| ParticipantLimit | How many participants to include (max 100). |
| Callback | Called when a response is received |
| void UStreamChatClientComponent::ListDevices | ( | TFunction< void(TArray< FDevice >)> | Callback | ) | const |
Returns a list of all available devices.
| Callback | Called when response is received |
| void UStreamChatClientComponent::MuteUserBP | ( | const FUserRef & | User, |
| FTimespan | Timeout ) const |
Mute the given user.
| Timeout | Timeout of ban. User will be unbanned after this period of time (unlimited if zero) |
| User | A reference to a user |
| TEnableIf< TIsInvocable< FunctorType, constTEvent &, VarTypes... >::Value, FDelegateHandle >::Type UStreamChatClientComponent::On | ( | FunctorType && | Functor, |
| VarTypes... | Vars ) |
Subscribe to a client event using a C++ lambda
| TEvent | Event type |
| Functor | Lambda to execute when event occurs. Should have signature similar to: [](const TEvent& Event){} |
| Vars | Additional variables to pass to the lambda |
| TEnableIf<!TIsDerivedFrom< UserClass, UObject >::IsDerived, FDelegateHandle >::Type UStreamChatClientComponent::On | ( | UserClass * | Obj, |
| TEventDelegateSpMethodPtr< TEvent, UserClass > | Method ) |
Subscribe to a client event using a shared pointer-based (fast, not thread-safe) member function delegate.
| TEvent | Event type |
| Obj | Object with given method |
| Method | Method to call when event occurs. Should have signature: void OnMyEvent(const TEvent& Event) |
| TEnableIf<!TIsDerivedFrom< UserClass, UObject >::IsDerived, FDelegateHandle >::Type UStreamChatClientComponent::On | ( | UserClass * | Obj, |
| TEventDelegateUObjectMethodPtr< TEvent, UserClass > | Method ) |
Subscribe to a client event using a UObject-based member function delegate.
| TEvent | Event type |
| Obj | UObject with given method |
| Method | Method to call when event occurs. Should have signature: void OnMyEvent(const TEvent& Event) |
| void UStreamChatClientComponent::QueryAdditionalChannels | ( | int32 | Limit = 10, |
| TFunction< void()> | Callback = {} ) |
Fetch more channels from the server.
| Limit | Number of channels returned is limited by this value. Maximum 30. |
| Callback | Called when a response is received from the backend |
| void UStreamChatClientComponent::QueryBannedUsers | ( | const FFilter & | Filter, |
| const TArray< FBanSortOption > & | SortOptions = {}, | ||
| const TOptional< FBanPaginationOptions > | PaginationOptions = {}, | ||
| const TFunction< void(const TArray< FBan > &)> | Callback = {} ) |
Find and filter channel-scoped or global user bans.
| Filter | Conditions to use to filter the banned users |
| SortOptions | The sorting used for the banned users matching the filters. Sorting is based on field and direction, multiple sorting options can be provided. |
| PaginationOptions | Pagination for bans can be done in two ways: using offset/limit or using the "created_at" field. |
| Callback | Called when response is received. |
| void UStreamChatClientComponent::QueryChannel | ( | const FChannelProperties & | ChannelProperties, |
| const EChannelFlags | Flags, | ||
| TFunction< void(UChatChannel *)> | Callback = {} ) |
Create a channel if it does not exist yet (if this user has the right permissions). Includes options to get data about the channel (including members, watchers and messages), subscribe to future updates.
| Flags | Get state, get presence and/or watch |
| ChannelProperties | Properties of the channel to query |
| Callback | Called when a response is received from the API |
| void UStreamChatClientComponent::QueryChannels | ( | FFilter | Filter, |
| const TArray< FChannelSortOption > & | SortOptions, | ||
| const UObject * | WorldContextObject, | ||
| FLatentActionInfo | LatentInfo, | ||
| TArray< UChatChannel * > & | OutChannels, | ||
| UPARAM(meta=(Bitmask, BitmaskEnum=EChannelFlags)) const int32 | Flags = 3 ) |
Query the API for all channels which match the given filter. Will also automatically watch all channels.
| Filter | The query filters to use. You can query on any of the custom fields you've defined on the Channel. As a minimum, the filter should be something like: { members: { $in: [userID] } } |
| SortOptions | The sorting used for the channels matching the filters. Sorting is based on field and direction, and multiple sorting options can be provided. |
| Flags | Get state, get presence and/or watch |
| OutChannels | An array of channel objects which can be used to interact with the channels |
| void UStreamChatClientComponent::QueryChannels | ( | TOptional< FFilter > | Filter = {}, |
| const TArray< FChannelSortOption > & | SortOptions = {}, | ||
| const EChannelFlags | Flags = EChannelFlags::State | EChannelFlags::Watch, | ||
| const FPaginationOptions & | PaginationOptions = {}, | ||
| TFunction< void(const TArray< UChatChannel * > &)> | Callback = {} ) |
Query the API for all channels which match the given filter. Will also automatically watch all channels.
| Callback | Called when a response is received from the API |
| Filter | The query filters to use. You can query on any of the custom fields you've defined on the Channel. As a minimum, the filter should be something like: { members: { $in: [userID] } } |
| SortOptions | The sorting used for the channels matching the filters. Sorting is based on field and direction, and multiple sorting options can be provided. |
| Flags | Get state, get presence and/or watch |
| PaginationOptions | Pagination offset and limit |
| void UStreamChatClientComponent::QueryThreads | ( | const TOptional< FFilter > & | Filter = {}, |
| const TArray< FThreadSortOption > & | SortOptions = {}, | ||
| TOptional< uint32 > | Limit = {}, | ||
| TOptional< uint32 > | ReplyLimit = {}, | ||
| const TOptional< FString > & | Next = {}, | ||
| TFunction< void(const TArray< FChatThread > &Threads, const FString &NextPage)> | Callback = {} ) const |
List the threads the current user participates in, across all of their channels.
This is the thread-list surface: one entry per thread, each carrying its parent message and a preview of its most recent replies. To read a whole thread, fetch its replies through the channel it belongs to with UChatChannel::QueryReplies.
| Filter | Conditions the returned threads must match. Queryable fields include channel_cid, parent_message_id, created_by_user_id, has_unread, reply_count and last_message_at. |
| SortOptions | The sorting used for the threads matching the filter. Defaults server-side to threads with unread replies first, then most recent reply first. |
| Limit | The number of threads to return (max 100) |
| ReplyLimit | How many of the latest replies to preview per thread (max 10) |
| Next | Value from a previous response, to fetch the following page |
| Callback | Called with the threads and, if there are more, the token to pass as Next |
| void UStreamChatClientComponent::QueryUsers | ( | const FFilter & | Filter = {}, |
| const TArray< FUserSortOption > & | Sort = {}, | ||
| bool | bPresence = true, | ||
| const TOptional< FPaginationOptions > | PaginationOptions = {}, | ||
| TFunction< void(const TArray< FUserRef > &)> | Callback = {} ) const |
Search for users and see if they are online/offline.
| bPresence | Get updates when the user goes offline/online |
| Filter | Conditions to use to filter the users, |
| Sort | The sorting used for the users matching the filters. Sorting is based on field and direction, multiple sorting options can be provided. |
| PaginationOptions | The number of users to return and pagination offset |
| Callback | Called when response is received |
| void UStreamChatClientComponent::RemoveDevice | ( | const FString & | DeviceId | ) | const |
Unregistering a device removes the device from the user and stops further new message notifications.
| DeviceId | Device-specific identifier |
| void UStreamChatClientComponent::SearchMessages | ( | const FFilter & | ChannelFilter = {}, |
| const TOptional< FString > & | Query = {}, | ||
| const TOptional< FFilter > & | MessageFilter = {}, | ||
| const TArray< FMessageSortOption > & | Sort = {}, | ||
| TOptional< uint32 > | MessageLimit = {}, | ||
| TFunction< void(const TArray< FMessage > &)> | Callback = {} ) const |
Search all messages A channel filter is required. All other parameters are optional, but a minimum of either a query or message filter is additionally required.
| Callback | Called when response is received |
| Query | Search phrase |
| ChannelFilter | Channel filter conditions |
| MessageFilter | Message filter conditions |
| Sort | Sort parameters. Cannot be used with non-zero offset. |
| MessageLimit | Number of messages to return |
| void UStreamChatClientComponent::ShadowBanUserBP | ( | const FUserRef & | User, |
| FTimespan | Timeout ) const |
Shadow ban a user from app entirely When a user is banned, they will not be allowed to post messages until the ban is removed or expired but will be able to connect to Chat and to channels as before.
| User | User to ban |
| Timeout | Timeout of ban. User will be unbanned after this period of time (unlimited if zero) |
| void UStreamChatClientComponent::ShadowUnbanUser | ( | const FUserRef & | User | ) | const |
Remove previously applied app-wide shadow ban.
| User | User to unban |
| void UStreamChatClientComponent::UnbanUser | ( | const FUserRef & | User | ) | const |
Remove previously applied app-wide ban.
| User | User to unban |
| void UStreamChatClientComponent::UnblockUser | ( | const FUserRef & | User | ) | const |
Unblock a previously blocked user.
| User | A reference to a user |
| void UStreamChatClientComponent::UnflagMessage | ( | const FMessage & | Message | ) | const |
Withdraw a flag this user previously raised against a message.
| Message | A reference to an existing message |
| void UStreamChatClientComponent::UnflagUser | ( | const FUserRef & | User | ) | const |
Withdraw a flag this user previously raised against another user.
| User | A reference to a user |
| void UStreamChatClientComponent::UnmuteUser | ( | const FUserRef & | User | ) | const |
Unmute a previously muted user.
| User | A reference to a user |
| void UStreamChatClientComponent::WatchChannel | ( | const FChannelProperties & | ChannelProperties, |
| const UObject * | WorldContextObject, | ||
| FLatentActionInfo | LatentInfo, | ||
| UChatChannel *& | OutChannel ) |
Create a channel if it does not exist yet (if this user has the right permissions), get data about the channel (including members, watchers and messages) and subscribe to future updates
| ChannelProperties | Properties of the channel to watch |
| OutChannel | Object which can be used to interact with the channel |
| void UStreamChatClientComponent::WatchChannel | ( | const FChannelProperties & | ChannelProperties, |
| TFunction< void(UChatChannel *)> | Callback ) |
Create a channel if it does not exist yet (if this user has the right permissions), get data about the channel (including members, watchers and messages) and subscribe to future updates.
| ChannelProperties | Properties of the channel to watch |
| Callback | Called when a response is received from the API |