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 byZopimChatFragment
orZopimPreChatFragment
based on chat configurationZopimChatApi.DefaultConfig
orZopimChatApi.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 class
ZopimChatLogFragment.ChatTimeoutReceiver
Receiver 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 void
enableAgentAvailabilityMonitoring(boolean enable)
Enables or disables an agent monitoring feature that either shows or hides the offline comment view based on agents availability.void
onActivityResult(int requestCode, int resultCode, Intent data)
void
onAttach(Activity activity)
void
onConnected()
This will occur in case of chat connectivity recovery.void
onCreate(Bundle savedInstanceState)
void
onCreateOptionsMenu(Menu menu, MenuInflater inflater)
View
onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
void
onDisconnected()
This will occur in case of chat connectivity loss.void
onHideToast()
boolean
onOptionsItemSelected(MenuItem item)
void
onPause()
void
onResume()
void
onSaveInstanceState(Bundle outState)
void
onShowToast()
void
onStart()
void
onStop()
void
onViewCreated(View view, Bundle savedInstanceState)
void
onViewStateRestored(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.ConnectionListener
This will occur in case of chat connectivity recovery.- Specified by:
onConnected
in interfaceConnectionFragment.ConnectionListener
-
onDisconnected
public void onDisconnected()
Description copied from interface:ConnectionFragment.ConnectionListener
This will occur in case of chat connectivity loss.- Specified by:
onDisconnected
in interfaceConnectionFragment.ConnectionListener
-
-