Package com.zendesk.sdk.feedback.ui
Class ContactZendeskFragment
- java.lang.Object
-
- Fragment
-
- com.zendesk.sdk.feedback.ui.ContactZendeskFragment
-
public class ContactZendeskFragment extends FragmentThis fragment will present a full (i.e. non dialog based) screen method of contacting Zendesk.The fragment will contribute a send icon to the parent activity. This send button will be enabled when there is at least one character entered.
Please note that this fragment must be instantiated in code as it requires bundled arguments.
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringEXTRA_CONFIGURATIONstatic java.lang.StringEXTRA_CONFIGURATION_ADDITIONAL_INFOstatic java.lang.StringEXTRA_CONFIGURATION_REQUEST_SUBJECTstatic java.lang.StringEXTRA_CONFIGURATION_TAGS
-
Constructor Summary
Constructors Constructor and Description ContactZendeskFragment()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description voiddeleteUnusedAttachmentsBeforeShutdown()Call this method before the host activity of this fragment gets destroyed.static ContactZendeskFragmentnewInstance(ZendeskFeedbackConfiguration configuration)Creates an instance of the fragment using the specified configuration and email validator.voidonActivityResult(int requestCode, int resultCode, Intent data)voidonAttach(Context context)voidonCreate(Bundle savedInstanceState)voidonCreateOptionsMenu(Menu menu, MenuInflater inflater)ViewonCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)voidonDestroy()voidonDetach()booleanonOptionsItemSelected(MenuItem item)voidonPrepareOptionsMenu(Menu menu)voidsetFeedbackListener(SubmissionListener feedbackListener)Sets the feedback listener if you wish to be notified of feedback request creation or errors
-
-
-
Field Detail
-
EXTRA_CONFIGURATION
public static final java.lang.String EXTRA_CONFIGURATION
- See Also:
- Constant Field Values
-
EXTRA_CONFIGURATION_TAGS
public static final java.lang.String EXTRA_CONFIGURATION_TAGS
- See Also:
- Constant Field Values
-
EXTRA_CONFIGURATION_ADDITIONAL_INFO
public static final java.lang.String EXTRA_CONFIGURATION_ADDITIONAL_INFO
- See Also:
- Constant Field Values
-
EXTRA_CONFIGURATION_REQUEST_SUBJECT
public static final java.lang.String EXTRA_CONFIGURATION_REQUEST_SUBJECT
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
public static ContactZendeskFragment newInstance(ZendeskFeedbackConfiguration configuration)
Creates an instance of the fragment using the specified configuration and email validator.- Parameters:
configuration- TheZendeskFeedbackConfiguration- Returns:
- The instance of the fragment
-
onAttach
public void onAttach(Context context)
-
onCreate
public void onCreate(Bundle savedInstanceState)
-
onCreateView
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
-
onCreateOptionsMenu
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater)
-
onPrepareOptionsMenu
public void onPrepareOptionsMenu(Menu menu)
-
onOptionsItemSelected
public boolean onOptionsItemSelected(MenuItem item)
-
onDetach
public void onDetach()
-
onActivityResult
public void onActivityResult(int requestCode, int resultCode, Intent data)
-
deleteUnusedAttachmentsBeforeShutdown
public void deleteUnusedAttachmentsBeforeShutdown()
Call this method before the host activity of this fragment gets destroyed. This will trigger the deletion of all unused uploaded images.
-
setFeedbackListener
public void setFeedbackListener(SubmissionListener feedbackListener)
Sets the feedback listener if you wish to be notified of feedback request creation or errors- Parameters:
feedbackListener- The submission listener
-
onDestroy
public void onDestroy()
-
-