| java.lang.Object | |
| ↳ | android.support.v4.app.ShareCompat.IntentBuilder |
IntentBuilder is a helper for constructing ACTION_SEND and
ACTION_SEND_MULTIPLE sharing intents and starting activities
to share content. The ComponentName and package name of the calling activity
will be included.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Add an array of email addresses to be used in the "bcc" field of the final Intent.
| |||||||||||
Add an email address to be used in the "bcc" field of the final Intent.
| |||||||||||
Add an array of email addresses to be used in the "cc" field of the final Intent.
| |||||||||||
Add an email address to be used in the "cc" field of the final Intent.
| |||||||||||
Add an email address to be used in the "to" field of the final Intent.
| |||||||||||
Add an array of email addresses to be used in the "to" field of the final Intent.
| |||||||||||
Add a stream URI to the data that should be shared.
| |||||||||||
Create an Intent that will launch the standard Android activity chooser,
allowing the user to pick what activity/app on the system should handle
the share.
| |||||||||||
Create a new IntentBuilder for launching a sharing action from launchingActivity.
| |||||||||||
Retrieve the Intent as configured so far by the IntentBuilder.
| |||||||||||
Set the title that will be used for the activity chooser for this share.
| |||||||||||
Set the title that will be used for the activity chooser for this share.
| |||||||||||
Set an array of email addresses to BCC on this share.
| |||||||||||
Set an array of email addresses to CC on this share.
| |||||||||||
Set an array of email addresses as recipients of this share.
| |||||||||||
Set an HTML string to be sent as part of the share.
| |||||||||||
Set a stream URI to the data that should be shared.
| |||||||||||
Set a subject heading for this share; useful for sharing via email.
| |||||||||||
Set the literal text data to be sent as part of the share.
| |||||||||||
Set the type of data being shared
| |||||||||||
Start a chooser activity for the current share intent.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Add an array of email addresses to be used in the "bcc" field of the final Intent.
| addresses | Email addresses to BCC |
|---|
Add an email address to be used in the "bcc" field of the final Intent.
| address | Email address to BCC |
|---|
Add an array of email addresses to be used in the "cc" field of the final Intent.
| addresses | Email addresses to CC |
|---|
Add an email address to be used in the "cc" field of the final Intent.
| address | Email address to CC |
|---|
Add an email address to be used in the "to" field of the final Intent.
| address | Email address to send to |
|---|
Add an array of email addresses to be used in the "to" field of the final Intent.
| addresses | Email addresses to send to |
|---|
Add a stream URI to the data that should be shared. If this is not the first stream URI added the final intent constructed will become an ACTION_SEND_MULTIPLE intent. Not all apps will handle both ACTION_SEND and ACTION_SEND_MULTIPLE.
| streamUri | URI of the stream to share |
|---|
Create an Intent that will launch the standard Android activity chooser, allowing the user to pick what activity/app on the system should handle the share.
Create a new IntentBuilder for launching a sharing action from launchingActivity.
| launchingActivity | Activity that the share will be launched from |
|---|
Retrieve the Intent as configured so far by the IntentBuilder. This Intent is suitable for use in a ShareActionProvider or chooser dialog.
To create an intent that will launch the activity chooser so that the user
may select a target for the share, see createChooserIntent().
Set the title that will be used for the activity chooser for this share.
| resId | Resource ID of the title string to use |
|---|
Set the title that will be used for the activity chooser for this share.
| title | Title string |
|---|
Set an array of email addresses to BCC on this share. This replaces all current "BCC" recipients that have been set so far.
| addresses | Email addresses to BCC on the share |
|---|
Set an array of email addresses to CC on this share. This replaces all current "CC" recipients that have been set so far.
| addresses | Email addresses to CC on the share |
|---|
Set an array of email addresses as recipients of this share. This replaces all current "to" recipients that have been set so far.
| addresses | Email addresses to send to |
|---|
Set an HTML string to be sent as part of the share.
If EXTRA_TEXT has not already been supplied,
a styled version of the supplied HTML text will be added as EXTRA_TEXT as
parsed by Html.fromHtml.
| htmlText | A string containing HTML markup as a richer version of the text provided by EXTRA_TEXT. |
|---|
Set a stream URI to the data that should be shared.
This replaces all currently set stream URIs and will produce a single-stream ACTION_SEND intent.
| streamUri | URI of the stream to share |
|---|
Set a subject heading for this share; useful for sharing via email.
| subject | Subject heading for this share |
|---|
Set the literal text data to be sent as part of the share. This may be a styled CharSequence.
| text | Text to share |
|---|
Set the type of data being shared
| mimeType | mimetype of the shared data |
|---|
Start a chooser activity for the current share intent.
Note that under most circumstances you should use
ShareCompat.configureMenuItem() to add a Share item to the menu while
presenting a detail view of the content to be shared instead
of invoking this directly.