Package com.zendesk.sdk.feedback.ui
Class ContactZendeskFragment
- java.lang.Object
-
- Fragment
-
- com.zendesk.sdk.feedback.ui.ContactZendeskFragment
-
public class ContactZendeskFragment extends Fragment
This 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.String
EXTRA_CONFIGURATION
static java.lang.String
EXTRA_CONFIGURATION_ADDITIONAL_INFO
static java.lang.String
EXTRA_CONFIGURATION_REQUEST_SUBJECT
static java.lang.String
EXTRA_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 void
deleteUnusedAttachmentsBeforeShutdown()
Call this method before the host activity of this fragment gets destroyed.static ContactZendeskFragment
newInstance(ZendeskFeedbackConfiguration configuration)
Creates an instance of the fragment using the specified configuration and email validator.void
onActivityResult(int requestCode, int resultCode, Intent data)
void
onAttach(Context context)
void
onCreate(Bundle savedInstanceState)
void
onCreateOptionsMenu(Menu menu, MenuInflater inflater)
View
onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
void
onDestroy()
void
onDetach()
boolean
onOptionsItemSelected(MenuItem item)
void
onPrepareOptionsMenu(Menu menu)
void
setFeedbackListener(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()
-
-