IntentCompat

public final class IntentCompat


Helper for accessing features in Intent.

Summary

Constants

static final String

Activity Action: Creates a reminder.

static final String

Indicates an activity optimized for Leanback mode, and that should be displayed in the Leanback launcher.

static final String

A constant String that is associated with the Intent, used with ACTION_SEND to supply an alternative to EXTRA_TEXT as HTML formatted text.

static final String

Used as a boolean extra field in ACTION_VIEW intents to indicate that content should immediately be played without any intermediate screens that require additional user input, e.g.

static final String

Optional extra specifying a time in milliseconds since the Epoch.

Public constructors

Public methods

static @NonNull Intent
createManageUnusedAppRestrictionsIntent(
    @NonNull Context context,
    @NonNull String packageName
)

Make an Intent to redirect the user to UI to manage their unused app restriction settings for a particular app (e.g.

static @NonNull Intent
makeMainSelectorActivity(
    @NonNull String selectorAction,
    @NonNull String selectorCategory
)

Make an Intent for the main activity of an application, without specifying a specific activity to run but giving a selector to find the activity.

Constants

ACTION_CREATE_REMINDER

public static final String ACTION_CREATE_REMINDER

Activity Action: Creates a reminder.

Input: EXTRA_TITLE The title of the reminder that will be shown to the user. EXTRA_TEXT The reminder text that will be shown to the user. The intent should at least specify a title or a text. EXTRA_TIME The time when the reminder will be shown to the user. The time is specified in milliseconds since the Epoch (optional).

Output: Nothing.

See also
EXTRA_TITLE