Package io.smooch.core
Class ConversationViewDelegateAdapter
- java.lang.Object
-
- io.smooch.core.ConversationViewDelegateAdapter
-
- All Implemented Interfaces:
ConversationViewDelegate
public abstract class ConversationViewDelegateAdapter extends java.lang.Object implements ConversationViewDelegate
Abstract class that implementsConversationViewDelegate
-
-
Constructor Summary
Constructors Constructor Description ConversationViewDelegateAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onCreateConversationClick()
Called when a new conversation is selectedvoid
onRequestPermissionsCalled(java.lang.String[] permissions)
Notifies the delegate that permissions for this app have been requestedvoid
onStartActivityCalled(android.content.Intent intent)
Notifies the delegate that a call to start an activity has been madeboolean
shouldCreateCustomConversationFlow()
Notifies the ConverstationListActivity that the conversation activity create intent should be sent to the interceptor
-
-
-
Method Detail
-
onStartActivityCalled
public void onStartActivityCalled(android.content.Intent intent)
Notifies the delegate that a call to start an activity has been made- Specified by:
onStartActivityCalled
in interfaceConversationViewDelegate
- Parameters:
intent
- A copy of the description of the activity that will start
-
onRequestPermissionsCalled
public void onRequestPermissionsCalled(java.lang.String[] permissions)
Notifies the delegate that permissions for this app have been requested- Specified by:
onRequestPermissionsCalled
in interfaceConversationViewDelegate
- Parameters:
permissions
- The list of permissions requested
-
shouldCreateCustomConversationFlow
public boolean shouldCreateCustomConversationFlow()
Notifies the ConverstationListActivity that the conversation activity create intent should be sent to the interceptor- Specified by:
shouldCreateCustomConversationFlow
in interfaceConversationViewDelegate
- Returns:
- true if you want to intercept the conversation activity create intent
-
onCreateConversationClick
public void onCreateConversationClick()
Called when a new conversation is selected- Specified by:
onCreateConversationClick
in interfaceConversationViewDelegate
-
-