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.String
FRAGMENT_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 void
onCreate(Bundle savedInstanceState)
boolean
onCreateOptionsMenu(Menu menu)
void
onNetworkAvailable()
This is called when network connectivity is available and you should be able to carry out network requests.void
onNetworkUnavailable()
This is called when network connectivity is unavailable and network requests are expected to fail.boolean
onOptionsItemSelected(MenuItem item)
static void
startActivity(Context context, ZendeskFeedbackConfiguration configuration)
Start theRequestActivity
with 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 theRequestActivity
with 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:
onCreate
in classNetworkAwareActionbarActivity
-
onNetworkAvailable
public void onNetworkAvailable()
Description copied from class:NetworkAwareActionbarActivity
This 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:
onNetworkAvailable
in interfaceNetworkAware
- Overrides:
onNetworkAvailable
in classNetworkAwareActionbarActivity
-
onNetworkUnavailable
public void onNetworkUnavailable()
Description copied from class:NetworkAwareActionbarActivity
This is called when network connectivity is unavailable and network requests are expected to fail.- Specified by:
onNetworkUnavailable
in interfaceNetworkAware
- Overrides:
onNetworkUnavailable
in classNetworkAwareActionbarActivity
-
onCreateOptionsMenu
public boolean onCreateOptionsMenu(Menu menu)
-
onOptionsItemSelected
public boolean onOptionsItemSelected(MenuItem item)
-
-