public class DialerIntent extends BaseIntent<DialerIntent>
BaseIntent builder implementation providing API for building and starting of intents
targeting a dialer related applications.
This intent builder requires only a phone number to be specified via phoneNumber(String).
SmsIntent| Modifier and Type | Field and Description |
|---|---|
static String |
URI_SCHEME
Uri scheme for phone dialer targeting intents.
|
| Constructor and Description |
|---|
DialerIntent() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
ensureCanBuildOrThrow()
Called to ensure that this builder can build its Intent from its current data.
|
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 |
phoneNumber()
Returns the phone number that will be passed to the dialer application.
|
DialerIntent |
phoneNumber(String number)
Sets a phone number that should be passed to the dialer application.
|
activityNotFoundMessage, activityNotFoundMessage, build, cannotBuildIntentException, dialogTitle, dialogTitle, enterTransition, enterTransition, exitTransition, exitTransition, isActivityForIntentAvailable, notifyActivityNotFound, onStartWith, startWith, transitionspublic static final String URI_SCHEME
Constant value: tel
public DialerIntent phoneNumber(String number)
number - The desired phone number. May be null to clear the current one.phoneNumber()public String phoneNumber()
phoneNumber(String)protected void ensureCanBuildOrThrow()
BaseIntent
If there are some required data missing/not specified, an exception indicating such state
should be thrown. The default exception may be created via BaseIntent.cannotBuildIntentException(String).
ensureCanBuildOrThrow in class BaseIntent<DialerIntent>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<DialerIntent>context - Context obtained from the IntentStarter.