Package com.zendesk.sdk.requests
Class ViewRequestActivity
- java.lang.Object
-
- AppCompatActivity
-
- com.zendesk.sdk.ui.NetworkAwareActionbarActivity
-
- com.zendesk.sdk.requests.ViewRequestActivity
-
- All Implemented Interfaces:
- NetworkAware, Retryable
public class ViewRequestActivity extends NetworkAwareActionbarActivity
To launch the ViewRequest it accepts two Extras to be passed via the intent For more details: @see Intents and Intent Filters EXTRA_REQUEST_ID is a required extra, a long which references the request ID to be viewed.
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringEXTRA_REQUEST_IDstatic java.lang.StringEXTRA_SUBJECT-
Fields inherited from class com.zendesk.sdk.ui.NetworkAwareActionbarActivity
mNetworkAvailable
-
-
Constructor Summary
Constructors Constructor and Description ViewRequestActivity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description protected voidonCreate(Bundle savedInstanceState)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)-
Methods inherited from class com.zendesk.sdk.ui.NetworkAwareActionbarActivity
onPause, onResume, onRetryAvailable, onRetryUnavailable
-
-
-
-
Field Detail
-
EXTRA_REQUEST_ID
public static final java.lang.String EXTRA_REQUEST_ID
- See Also:
- Constant Field Values
-
EXTRA_SUBJECT
public static final java.lang.String EXTRA_SUBJECT
- See Also:
- Constant Field Values
-
-
Method Detail
-
onCreate
protected void onCreate(Bundle savedInstanceState)
- Overrides:
onCreatein classNetworkAwareActionbarActivity
-
onOptionsItemSelected
public boolean onOptionsItemSelected(MenuItem item)
-
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
-
-