belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1
NavUtils
public
final
class
NavUtils
extends Object
java.lang.Object | |
↳ | android.support.v4.app.NavUtils |
NavUtils provides helper functionality for applications implementing recommended Android UI navigation patterns. For information about recommended navigation patterns see Tasks and Back Stack from the developer guide and Navigation from the design guide.
Summary
Constants | |
---|---|
String |
PARENT_ACTIVITY
|
Public methods | |
---|---|
static
Intent
|
getParentActivityIntent(Context context, ComponentName componentName)
Obtain an |
static
Intent
|
getParentActivityIntent(Context context, Class<?> sourceActivityClass)
Obtain an |
static
Intent
|
getParentActivityIntent(Activity sourceActivity)
Obtain an |
static
String
|
getParentActivityName(Context context, ComponentName componentName)
Return the fully qualified class name of a source activity's parent activity as specified by
a |
static
String
|
getParentActivityName(Activity sourceActivity)
Return the fully qualified class name of sourceActivity's parent activity as specified by
a |
static
void
|
navigateUpFromSameTask(Activity sourceActivity)
Convenience method that is equivalent to calling
|
static
void
|
navigateUpTo(Activity sourceActivity, Intent upIntent)
Navigate from sourceActivity to the activity specified by upIntent, finishing sourceActivity in the process. |
static
boolean
|
shouldUpRecreateTask(Activity sourceActivity, Intent targetIntent)
Returns true if sourceActivity should recreate the task when navigating 'up' by using targetIntent. |
Inherited methods | |
---|---|
![]()
java.lang.Object
|
Constants
PARENT_ACTIVITY
String PARENT_ACTIVITY
Constant Value: "android.support.PARENT_ACTIVITY"