Package com.zopim.android.sdk.prechat
Class ZopimPreChatFragment
- java.lang.Object
-
- Fragment
-
- com.zopim.android.sdk.prechat.ZopimPreChatFragment
-
- All Implemented Interfaces:
- ConnectionFragment.ConnectionListener
public class ZopimPreChatFragment extends Fragment implements ConnectionFragment.ConnectionListener
Definition of the pre chat fragment. Handles chat pre chat form. This fragment will be configured throughZopimPreChatFragment.newInstance(PreChatForm)with an configuration instance of thePreChatForm.
-
-
Constructor Summary
Constructors Constructor and Description ZopimPreChatFragment()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static ZopimPreChatFragmentnewInstance(PreChatForm preChatForm)Builds theZopimPreChatFragmentbased on thePreChatFormconfiguration.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.booleanonOptionsItemSelected(MenuItem item)voidonPause()voidonSaveInstanceState(Bundle outState)voidonStart()voidonStop()voidonViewCreated(View view, Bundle savedInstanceState)voidonViewStateRestored(Bundle savedInstanceState)
-
-
-
Method Detail
-
newInstance
public static ZopimPreChatFragment newInstance(PreChatForm preChatForm)
Builds theZopimPreChatFragmentbased on thePreChatFormconfiguration.- Parameters:
preChatForm- as configuration- Returns:
- configured pre chat fragment
-
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)
-
onStart
public void onStart()
-
onViewStateRestored
public void onViewStateRestored(Bundle savedInstanceState)
-
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)
-
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
-
-