ActivityOptionsCompat

Added in 1.1.0

public class ActivityOptionsCompat


Helper for accessing features in android.app.ActivityOptions in a backwards compatible fashion.

Summary

Constants

static final String
EXTRA_USAGE_TIME_REPORT = "android.activity.usage_time"

A long in the extras delivered by requestUsageTimeReport that contains the total time (in ms) the user spent in the app flow.

static final String
EXTRA_USAGE_TIME_REPORT_PACKAGES = "android.usage_time_packages"

A Bundle in the extras delivered by requestUsageTimeReport that contains detailed information about the time spent in each package associated with the app; each key is a package name, whose value is a long containing the time (in ms).

Protected constructors

Public methods

@Nullable Rect

Returns the bounds that should be used to launch the activity.

int

Gets the id of the display where activity should be launched.

static @NonNull ActivityOptionsCompat

Create a basic ActivityOptions that has no special animation associated with it.

static @NonNull ActivityOptionsCompat <d