public final class PlayIntent extends BaseIntent<PlayIntent>
BaseIntent builder implementation providing API for building and starting of intents
targeting the Android Play Store application.
This intent builder does not require any of its parameters to be set. Package name of the
application component that starts this intent will be used as application Id by default. If this
intent is to be started for a specific application, id of that application may be specified via
applicationId(String).
| Constructor and Description |
|---|
PlayIntent() |
| Modifier and Type | Method and Description |
|---|---|
String |
applicationId()
Returns the unique ID of an Android application to be viewed in Play Store.
|
PlayIntent |
applicationId(String applicationId)
Sets a unique ID of an Android application to be viewed in Play Store.
|
protected Intent |
onBuild(Context context)
Invoked from
BaseIntent.build(Context) after BaseIntent.ensureCanBuildOrThrow() to build intent
specific for this intent builder from the current data. |
String |
packageName()
Deprecated.
Use
applicationId() instead. |
PlayIntent |
packageName(String packageName)
Deprecated.
Use
applicationId(String) instead. |
activityNotFoundMessage, activityNotFoundMessage, build, cannotBuildIntentException, dialogTitle, dialogTitle, ensureCanBuildOrThrow, enterTransition, enterTransition, exitTransition, exitTransition, isActivityForIntentAvailable, notifyActivityNotFound, onStartWith, startWith, transitions@Deprecated public PlayIntent packageName(String packageName)
applicationId(String) instead.Sets a package name of an Android application to be viewed in Play Store.
packageName - Package name of the desired application to view in store. May be null
to use the current application's package.packageName()@Deprecated public String packageName()
applicationId() instead.Returns the package name of an Android application to be viewed in Play Store.
packageName(String)public PlayIntent applicationId(String applicationId)
applicationId - ID of the desired application to view in store. May be null
to use the current application's package name.applicationId()public String applicationId()
applicationId(String)protected Intent onBuild(Context context)
BaseIntentBaseIntent.build(Context) after BaseIntent.ensureCanBuildOrThrow() to build intent
specific for this intent builder from the current data.onBuild in class BaseIntent<PlayIntent>context - Context obtained from the IntentStarter.