Package com.zendesk.sdk.requests
Class RequestActivity
- java.lang.Object
-
- AppCompatActivity
-
- com.zendesk.sdk.ui.NetworkAwareActionbarActivity
-
- com.zendesk.sdk.requests.RequestActivity
-
- All Implemented Interfaces:
- NetworkAware, Retryable
public class RequestActivity extends NetworkAwareActionbarActivity
This is a simple activity that will host a
RequestListFragment
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringFRAGMENT_TAG-
Fields inherited from class com.zendesk.sdk.ui.NetworkAwareActionbarActivity
mNetworkAvailable
-
-
Constructor Summary
Constructors Constructor and Description RequestActivity()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description protected voidonCreate(Bundle savedInstanceState)booleanonCreateOptionsMenu(Menu menu)voidonNetworkAvailable()This is called when network connectivity is available and you should be able to carry out network requests.voidonNetworkUnavailable()This is called when network connectivity is unavailable and network requests are expected to fail.booleanonOptionsItemSelected(MenuItem item)static voidstartActivity(Context context, ZendeskFeedbackConfiguration configuration)Start theRequestActivitywith the supplied configuration, which will be used for ticket creation.-
Methods inherited from class com.zendesk.sdk.ui.NetworkAwareActionbarActivity
onPause, onResume, onRetryAvailable, onRetryUnavailable
-
-
-
-
Field Detail
-
FRAGMENT_TAG
public static final java.lang.String FRAGMENT_TAG
- See Also:
- Constant Field Values
-
-
Method Detail
-
startActivity
public static void startActivity(Context context, ZendeskFeedbackConfiguration configuration)Start theRequestActivitywith the supplied configuration, which will be used for ticket creation.- Parameters:
context- A valid context, used to start the Activity.configuration- The configuration to use for contacting Zendesk. Default configuration will be used if null.
-
onCreate
protected void onCreate(Bundle savedInstanceState)
- Overrides:
onCreatein classNetworkAwareActionbarActivity
-
onNetworkAvailable
public void onNetworkAvailable()
Description copied from class:NetworkAwareActionbarActivityThis is called when network connectivity is available and you should be able to carry out network requests.If you override this method make sure to call super.onNetworkAvailable if you want the no network view to be dismissed
- Specified by:
onNetworkAvailablein interfaceNetworkAware- Overrides:
onNetworkAvailablein classNetworkAwareActionbarActivity
-
onNetworkUnavailable
public void onNetworkUnavailable()
Description copied from class:NetworkAwareActionbarActivityThis is called when network connectivity is unavailable and network requests are expected to fail.- Specified by:
onNetworkUnavailablein interfaceNetworkAware- Overrides:
onNetworkUnavailablein classNetworkAwareActionbarActivity
-
onCreateOptionsMenu
public boolean onCreateOptionsMenu(Menu menu)
-
onOptionsItemSelected
public boolean onOptionsItemSelected(MenuItem item)
-
-