public class ExternalIntents
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
AddToCalendarIntentBuilder |
addEvent()
Returns builder for "add calendar event" request.
|
IntentHolder |
app(java.lang.String packageName) |
BrowserIntentBuilder |
browser()
Returns builder to open url in a browser.
|
CustomTabsIntentBuilder |
customTabs()
Returns builder to open url using Chrome custom tabs.
Note, that corresponding library should be added as dependency to your project. |
DialIntentBuilder |
dial()
Returns builder to open dialer with pre-filled phone number.
|
EmailIntentBuilder |
email()
Returns builder for "send email" request.
|
PlayIntentBuilder |
googlePlay()
Returns builder to open Google Play details screen for specified app.
Falls back to browser if Google Play app is not found. |
static boolean |
isAppInstalled(android.content.Context context,
java.lang.String packageName) |
PickContactIntentBuilder |
pickEmail()
Opens phone picker activity.
Use PickPhoneHandler.onResult(Context, int, Intent) to handle results. |
PickContactIntentBuilder |
pickPhone()
Opens phone picker activity.
Use PickPhoneHandler.onResult(Context, int, Intent) to handle results. |
PickImageIntentBuilder |
pickPhoto()
Opens image picker activity.
Use PickImageHandler.onResult(Context, int, Intent) to handle results. |
ShareIntentBuilder |
share()
Returns builder for sharing request.
Uses Intent.ACTION_SEND action and "plain/text" mime type. |
SmsIntentBuilder |
sms()
Returns builder for sms sending request.
|
YouTubeIntentBuilder |
youTube()
Returns builder to open YouTube app with given video id.
Falls back to browser if YouTube app is not found. |
public static boolean isAppInstalled(android.content.Context context, java.lang.String packageName)
public AddToCalendarIntentBuilder addEvent()
public IntentHolder app(java.lang.String packageName)
public BrowserIntentBuilder browser()
public CustomTabsIntentBuilder customTabs()
public DialIntentBuilder dial()
public EmailIntentBuilder email()
public PlayIntentBuilder googlePlay()
public PickContactIntentBuilder pickEmail()
PickPhoneHandler.onResult(Context, int, Intent)
to handle results.public PickContactIntentBuilder pickPhone()
PickPhoneHandler.onResult(Context, int, Intent)
to handle results.public PickImageIntentBuilder pickPhoto()
PickImageHandler.onResult(Context, int, Intent)
to handle results.public ShareIntentBuilder share()
public SmsIntentBuilder sms()
public YouTubeIntentBuilder youTube()