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 by default. If this intent is to be
started for a specific application, package name of that application may be specified via
packageName(String).
| Constructor and Description |
|---|
PlayIntent() |
| Modifier and Type | Method and Description |
|---|---|
protected android.content.Intent |
onBuild(android.content.Context context)
Invoked from
BaseIntent.build(Context) after BaseIntent.ensureCanBuildOrThrow() to build intent
specific for this intent builder from the current data. |
String |
packageName()
Returns the package name of an Android application to be viewed in Play Store.
|
PlayIntent |
packageName(String packageName)
Sets a package name of an Android application to be viewed in Play Store.
|
activityNotFoundMessage, activityNotFoundMessage, build, cannotBuildIntentException, dialogTitle, dialogTitle, ensureCanBuildOrThrow, enterTransition, enterTransition, exitTransition, exitTransition, isActivityForIntentAvailable, notifyActivityNotFound, onStartWith, startWith, transitionspublic PlayIntent packageName(String packageName)
packageName - Package name of the desired application to view in store. May be null
to use the current application's package.packageName()public String packageName()
packageName(String)protected android.content.Intent onBuild(android.content.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.