Index
Functions
Functions
Const applyTheme
-
Parameters
-
t: ITheme
Returns Promise<void>
-
Index
Functions
Const getApplicationBadges
-
Gets Application Badges.
Parameters
-
args: {}
Returns Promise<IApplicationBadges>
-
Const getBadgeProgress
-
Gets Progress of Badges.
Parameters
-
args: { badgeIds: string[]; profileId: string }
-
badge
Ids: string[] -
profile
Id: string
-
Returns Promise<IBadgeProgress[]>
-
Const getPaginatedProfileBadges
-
Parameters
-
args: { profileId: string }
-
profile
Id: string
-
Returns Promise<AsyncIterator<Object, Function, Function>>
-
Const getProfileBadges
-
Gets userProfile Badges.
Parameters
-
args: { profileId: string }
-
profile
Id: string userProfile ID
-
Returns Promise<IProfileBadges>
-
Index
Functions
Const createChatRoom
-
Creates a new chat room
Parameters
-
args: IChatRoomCreationArgs
Returns Promise<IChatRoomPayload>
-
Const getChatRoom
-
Gets chat room by roomId
Parameters
-
args: IChatRoomArgs
Returns Promise<IChatRoomPayload>
-
Const getChatRoomMemberships
-
Get list of users that are a 'member' of given chatroom.
Parameters
-
args: IChatRoomArgs
Returns Promise<IChatRoomMembershipsResponse>
-
Const getChatUserMutedStatus
-
Gets the muted status of the current user for a given chat room
Parameters
-
args: IChatRoomArgs
Returns Promise<IMutedResponse>
-
Const getProfileChatRoomMemberships
-
Get list of chat rooms that the current user is a 'member' of.
Returns Promise<IProfileChatRoomMembershipResponse>
Const joinChatRoom
-
Join chat room by roomId, current user becomes 'member' and is available in chatroom membership list through
LiveLike.getChatRoomMemberships()
.Parameters
-
args: IChatRoomArgs
Returns Promise<boolean>
-
Const leaveChatRoom
-
Leave chat room by roomId, current user 'member' status removed from chatroom membership list through
LiveLike.getChatRoomMemberships()
.Parameters
-
args: IChatRoomArgs
Returns Promise<boolean>
-
Const updateChatRoom
-
Updates chat room by id
Parameters
-
roomId: string
-
args: IChatRoomCreationArgs
Returns Promise<IChatRoomPayload>
-
Index
Functions
Const getLeaderboard
-
Gets leaderboard detail from leaderboardId.
Parameters
-
args: ILeaderboardArgs
Returns Promise<ILeaderboardPayload>
-
Const getLeaderboardEntries
-
Parameters
-
args: ILeaderboardArgs
Returns Promise<ILeaderboardEntries>
-
Const getLeaderboardProfileRank
-
Gets leaderboard entry for a given profile in a given leaderboard.
Parameters
-
args: ILeaderboardRankArgs
Returns Promise<ILeaderboardRankPayload>
-
Const getLeaderboards
-
Gets leaderboard list for a given program.
Parameters
-
args: { programId: string }
-
program
Id: string
-
Returns Promise<ILeaderboardPayload[]>
-
Const getPaginatedLeaderboardEntries
-
Gets leaderboard entries list from leaderboardId.
Parameters
-
args: ILeaderboardArgs
Returns Promise<AsyncIterator<Object, Function, Function>>
Promise
-
Index
Functions
Const addMessageListener
-
Adds a listener to a chatroom that calls passed callback function when event fires.
Parameters
-
arg: { roomId: string }
-
room
Id: string
-
-
callback: Function
Returns Promise<void>
-
Const getMessageCount
-
getMessageCount Returns number of messages in chat room
Parameters
-
roomId: string
-
Optional time: { since: string | number | Date }
-
since: string | number | Date
Time to get messages since
-
Returns Promise<IMessageCount>
-
Const getMessageList
-
getMessageList Returns array of message objects
Parameters
-
roomId: string
-
Optional opts: IMessageListOptions
Returns Promise<IMessageListPayload>
-
Const prepareOutgoingChatMessage
-
Parameters
-
roomId: string
-
preparationCallback: MessagePreparationCallback
Returns (message: IMessageResponse) => IMessageResponse
-
-
Parameters
-
message: IMessageResponse
Returns IMessageResponse
-
-
-
Const removeMessageListener
-
Removes listener from chatroom
Parameters
-
arg: IChatRoomArgs
-
callback: MessageListenerCallback
Returns void
-
Const sendMessage
-
sendMessage Send user message to chat room.
Parameters
-
args: ISendMessageArgs
Returns Promise<any>
-
Index
Functions
Functions
Const getSponsors
-
Gets sponsors list for a given program.
Parameters
-
args: { programId: string }
-
program
Id: string
-
Returns Promise<ISponsorPayload[]>
-
Index
Functions
Functions
Const createUserProfile
-
Creates user profile. If no nickname argument is passed, a random nickname will be generated.
Parameters
-
args: { nickname?: string }
-
Optional nickname?: string
Optional nickname
-
Returns Promise<IUserProfile>
-
Const getUserProfile
-
Gets userProfile from accessToken.
Parameters
-
args: { accessToken: string }
-
access
Token: string userProfile access_token
-
Returns Promise<IUserProfile>
-
Const updateUserProfile
-
Updates profile by accessToken with optional changed nickname or custom_data.
Parameters
-
args: { accessToken: string; options?: { custom_data?: string; nickname?: string } }
-
access
Token: string userProfile access_token
-
Optional options?: { custom_data?: string; nickname?: string }
-
Optional custom_
data?: string Data saved to profile's custom_data property
-
Optional nickname?: string
The nickname to update the userProfile
-
-
Returns Promise<IUserProfile>
-
Index
Functions
Const addWidgetListener
-
Parameters
-
arg: { programId: string }
-
program
Id: string
-
-
callback: WidgetListenerCallback
Returns any
-
Const getPaginatedUnclaimedRewards
-
Parameters
-
args: { programId: string }
-
program
Id: string
-
Returns Promise<AsyncIterator<Object, Function, Function>>
-
Const getPaginatedWidgets
-
Get list of widgets that have already been posted.
Parameters
-
__namedParameters: { programId: any }
-
program
Id: any
-
Returns Promise<PaginationIterator>
-
Const getPostedWidgets
-
Parameters
-
__namedParameters: { programId: any }
-
program
Id: any
-
Returns Promise<IPostedWidgetsPayload>
-
Const getWidget
-
Gets widget object from passed kind and id
Parameters
-
args: IWidgetCreationArgs
Returns Promise<IWidgetPayload>
-
Const getWidgetInteractions
-
Parameters
-
args: IWidgetInteractionArgs
Returns Promise<any>
-
Const registerWidgetMode
-
Registers a custom widget state transition mode. The name argument is used to pass to one of the widget instantiation methods to choose
Parameters
-
name: string
-
mode: WidgetMode
Returns any
-
Const removeWidgetListener
-
Parameters
-
arg: { programId: string }
-
program
Id: string
-
-
callback: WidgetListenerCallback
Returns void
-
Index
Interfaces
- Alert
Widget - Chat
Payload Channels - Emoji
Slider Widget - IApplication
Badges - IBadge
- IBadge
Progress - IBadge
Progression - IChat
Room Args - IChat
Room Creation Args - IChat
Room Membership - IChat
Room Memberships Response - IChat
Room Payload - IChat
Room Response - IChoice
Item - ILeaderboard
Args - ILeaderboard
Entries - ILeaderboard
Payload - ILeaderboard
Rank Args - ILeaderboard
Rank Payload - IMessage
Callback Struct - IMessage
Count - IMessage
List Options - IMessage
List Payload - IMessage
Listener Callback Args - IMessage
Menu Item - IMessage
Payload - IMessage
Reaction - IMessage
Reactions - IMessage
Response - IOption
Item - IPosted
Widgets Payload - IProfile
Badge Payload - IProfile
Badges - IProfile
Chat Room Membership - IProfile
Chat Room Membership Response - IPubnub
Config - IRequest
Options - IReward
Item - ISend
Message Args - ISponsor
Payload - IStorage
Strategy - ISync
Strategy - ITheme
- IUser
Profile - IWidget
Creation Args - IWidget
Display Args - IWidget
Interaction - IWidget
Interaction Args - IWidget
Interaction Widget - IWidget
Listener Callback Args - IWidget
Mode Args - IWidget
Option Item - IWidget
Payload - IWidget
Reaction - IWidget
Response - IWidget
Timeout Args - Init
Args - Rich
Text Widget
Type aliases
Type aliases
CustomWidgetRenderer
Type declaration
-
-
Parameters
-
__namedParameters: { IWidgetPayload: any }
-
IWidget
Payload: any
-
Returns HTMLElement | Node
-
-
MessageListenerCallback
Type declaration
-
-
Parameters
Returns unknown
-
MessagePreparationCallback
Type declaration
-
-
Parameters
-
message: IMessageResponse
Returns IMessageResponse
-
-
RegisterMenuArgs
Type declaration
-
-
Parameters
-
Optional message: any
Returns IMessageMenuItem[]
-
-
Rewards
WidgetKind
WidgetListenerCallback
Type declaration
-
-
Parameters
Returns unknown
-
WidgetListenerEvents
WidgetMode
Type declaration
-
-
Parameters
-
args: IWidgetModeArgs
Returns void
-
-
customMessageRenderer
Type declaration
-
-
Parameters
-
__namedParameters: { IMessagePayload: any }
-
IMessage
Payload: any
-
Returns HTMLElement | Node
-
-
applyTheme Dynamically change the theme
1.24.0