Package com.zopim.android.sdk.chatlog
Class ZopimChatLogFragment
- java.lang.Object
-
- Fragment
-
- com.zopim.android.sdk.chatlog.ZopimChatLogFragment
-
- All Implemented Interfaces:
- ConnectionFragment.ConnectionListener
public class ZopimChatLogFragment extends Fragment implements ConnectionFragment.ConnectionListener
Definition of the chat log fragment. Handles chat message log between the visitor and an agent. This fragment will host all chat log events that occur while in the chat session. It will allow end user to interact with the agent. It will be loaded byZopimChatFragmentorZopimPreChatFragmentbased on chat configurationZopimChatApi.DefaultConfigorZopimChatApi.SessionConfig.Do not use this fragment to start the chat, instead use
ZopimChatFragment- See Also:
- Dashboard visitor list
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description classZopimChatLogFragment.ChatTimeoutReceiverReceiver for chat session timeout event
-
Constructor Summary
Constructors Constructor and Description ZopimChatLogFragment()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static voidenableAgentAvailabilityMonitoring(boolean enable)Enables or disables an agent monitoring feature that either shows or hides the offline comment view based on agents availability.voidonActivityResult(int requestCode, int resultCode, Intent data)voidonAttach(Activity activity)voidonConnected()This will occur in case of chat connectivity recovery.voidonCreate(Bundle savedInstanceState)voidonCreateOptionsMenu(Menu menu, MenuInflater inflater)ViewonCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)voidonDisconnected()This will occur in case of chat connectivity loss.voidonHideToast()booleanonOptionsItemSelected(MenuItem item)voidonPause()voidonResume()voidonSaveInstanceState(Bundle outState)voidonShowToast()voidonStart()voidonStop()voidonViewCreated(View view, Bundle savedInstanceState)voidonViewStateRestored(Bundle savedInstanceState)
-
-
-
Method Detail
-
enableAgentAvailabilityMonitoring
public static void enableAgentAvailabilityMonitoring(boolean enable)
Enables or disables an agent monitoring feature that either shows or hides the offline comment view based on agents availability.This feature is turned off by default.
You can use this feature to avoid missed chats by preventing the user from sending a message while agents are unavailable for chat.
- Parameters:
enable-true> to enable this feature,false> to turn it off
-
onAttach
public void onAttach(Activity activity)
-
onCreate
public void onCreate(Bundle savedInstanceState)
-
onCreateView
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
-
onViewCreated
public void onViewCreated(View view, Bundle savedInstanceState)
-
onViewStateRestored
public void onViewStateRestored(Bundle savedInstanceState)
-
onStart
public void onStart()
-
onResume
public void onResume()
-
onPause
public void onPause()
-
onStop
public void onStop()
-
onSaveInstanceState
public void onSaveInstanceState(Bundle outState)
-
onCreateOptionsMenu
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater)
-
onOptionsItemSelected
public boolean onOptionsItemSelected(MenuItem item)
-
onActivityResult
public void onActivityResult(int requestCode, int resultCode, Intent data)
-
onShowToast
public void onShowToast()
-
onHideToast
public void onHideToast()
-
onConnected
public void onConnected()
Description copied from interface:ConnectionFragment.ConnectionListenerThis will occur in case of chat connectivity recovery.- Specified by:
onConnectedin interfaceConnectionFragment.ConnectionListener
-
onDisconnected
public void onDisconnected()
Description copied from interface:ConnectionFragment.ConnectionListenerThis will occur in case of chat connectivity loss.- Specified by:
onDisconnectedin interfaceConnectionFragment.ConnectionListener
-
-