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.String
EXTRA_REQUEST_ID
static java.lang.String
EXTRA_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 void
onCreate(Bundle savedInstanceState)
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)
-
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:
onCreate
in classNetworkAwareActionbarActivity
-
onOptionsItemSelected
public boolean onOptionsItemSelected(MenuItem item)
-
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
-
-