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 ZopimPreChatFragment
newInstance(PreChatForm preChatForm)
Builds theZopimPreChatFragment
based on thePreChatForm
configuration.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.boolean
onOptionsItemSelected(MenuItem item)
void
onPause()
void
onSaveInstanceState(Bundle outState)
void
onStop()
void
onViewCreated(View view, Bundle savedInstanceState)
void
onViewStateRestored(Bundle savedInstanceState)
-
-
-
Method Detail
-
newInstance
public static ZopimPreChatFragment newInstance(PreChatForm preChatForm)
Builds theZopimPreChatFragment
based on thePreChatForm
configuration.- 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)
-
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.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
-
-