Interface Messaging
-
- All Implemented Interfaces:
public interface MessagingPublic entry point of the SDK.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classMessaging.Companion
-
Method Summary
Modifier and Type Method Description abstract UnitshowMessaging(Context context)Given the context, starts the MessagingActivity immediately. abstract UnitshowMessaging(Context context, Integer intentFlags)Given the context and intentFlags, starts the MessagingActivity immediately. abstract UnitshowMessaging(Context context, MessagingScreen screen)Given the context and screen, starts the MessagingActivity immediately. abstract UnitshowMessaging(Context context, MessagingScreen screen, Integer intentFlags)Given the context, screen, and intentFlags starts the MessagingActivity immediately. abstract IntegergetUnreadMessageCount()Returns the current number of unread messages across all conversations. abstract IntegergetUnreadMessageCount(String conversationId)Returns the current number of unread messages for a specific conversation. abstract UnitsetConversationFields(Map<String, Object> fields)Sets the given fields values that will be associated against any conversations that the end user actively participates in. abstract UnitsetConversationTags(List<String> tags)Sets the given tags values that will be associated against any conversations that the end user actively participates in. abstract UnitclearConversationFields()Clears conversation fields values from storage abstract UnitclearConversationTags()Clears conversation tags from storage abstract UnitenableAnalyticsTracking(Boolean enabled)Sets whether analytics events should be collected and processed. -
-
Method Detail
-
showMessaging
abstract Unit showMessaging(Context context)
Given the context, starts the MessagingActivity immediately.
- Parameters:
context- the Context to start the activity
-
showMessaging
abstract Unit showMessaging(Context context, Integer intentFlags)
Given the context and intentFlags, starts the MessagingActivity immediately.
- Parameters:
context- the Context to start the activityintentFlags- special flags controlling how the intent to start the MessagingActivity is handled, 0 by default
-
showMessaging
abstract Unit showMessaging(Context context, MessagingScreen screen)
- Parameters:
context- the Context to start the activityscreen- the MessagingScreen to be displayed
-
showMessaging
abstract Unit showMessaging(Context context, MessagingScreen screen, Integer intentFlags)
Given the context, screen, and intentFlags starts the MessagingActivity immediately.
- Parameters:
context- the Context to start the activityscreen- the MessagingScreen to be displayedintentFlags- special flags controlling how the intent to start the MessagingActivity is handled, 0 by default
-
getUnreadMessageCount
abstract Integer getUnreadMessageCount()
Returns the current number of unread messages across all conversations.
-
getUnreadMessageCount
abstract Integer getUnreadMessageCount(String conversationId)
Returns the current number of unread messages for a specific conversation.
-
setConversationFields
abstract Unit setConversationFields(Map<String, Object> fields)
Sets the given fields values that will be associated against any conversations that the end user actively participates in.
-
setConversationTags
abstract Unit setConversationTags(List<String> tags)
Sets the given tags values that will be associated against any conversations that the end user actively participates in.
-
clearConversationFields
abstract Unit clearConversationFields()
Clears conversation fields values from storage
-
clearConversationTags
abstract Unit clearConversationTags()
Clears conversation tags from storage
-
enableAnalyticsTracking
abstract Unit enableAnalyticsTracking(Boolean enabled)
Sets whether analytics events should be collected and processed. The provided enabled value determines if analytics will be tracked. Analytics are enabled by default.
- Parameters:
enabled- If true, analytics will be enabled; if false, they will be disabled.
-
-
-
-