Package com.zopim.android.sdk.chatlog
Class ZopimCommentFragment
- java.lang.Object
-
- Fragment
-
- com.zopim.android.sdk.chatlog.ZopimCommentFragment
-
- All Implemented Interfaces:
- ConnectionFragment.ConnectionListener
public class ZopimCommentFragment extends Fragment implements ConnectionFragment.ConnectionListener
Definition of the chat comment fragment.Handles commenting on the chat rating.This fragment assumes that the chat session is already started and will attempt to resume chat in order to obtain active chat instance.
- See Also:
ZopimChatApi.resume(FragmentActivity)
-
-
Constructor Summary
Constructors Constructor and Description ZopimCommentFragment()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static ZopimCommentFragment
newInstance(java.lang.String comment)
Creates a new instance of theZopimCommentFragment
.void
onActivityCreated(Bundle savedInstanceState)
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.boolean
onOptionsItemSelected(MenuItem item)
void
onPause()
void
onResume()
void
onSaveInstanceState(Bundle outState)
void
onViewCreated(View view, Bundle savedInstanceState)
void
onViewStateRestored(Bundle savedInstanceState)
-
-
-
Method Detail
-
newInstance
public static ZopimCommentFragment newInstance(java.lang.String comment)
Creates a new instance of theZopimCommentFragment
.- Parameters:
comment
- to preload in the fragment- Returns:
- a new instance of
ZopimCommentFragment
-
onCreate
public void onCreate(Bundle savedInstanceState)
-
onCreateView
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
-
onViewCreated
public void onViewCreated(View view, Bundle savedInstanceState)
-
onActivityCreated
public void onActivityCreated(Bundle savedInstanceState)
-
onCreateOptionsMenu
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater)
-
onViewStateRestored
public void onViewStateRestored(Bundle savedInstanceState)
-
onResume
public void onResume()
-
onPause
public void onPause()
-
onSaveInstanceState
public void onSaveInstanceState(Bundle outState)
-
onOptionsItemSelected
public boolean onOptionsItemSelected(MenuItem item)
-
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
-
-