ShareCompat.IntentBuilder

public class 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.

Summary

Public constructors

IntentBuilder(@NonNull Context launchingContext)

Create a new IntentBuilder for launching a sharing action from launchingContext.

Public methods

@NonNull ShareCompat.IntentBuilder

Add an email address to be used in the "bcc" field of the final Intent.

@NonNull ShareCompat.IntentBuilder
addEmailBcc(String[] addresses)

Add an array of email addresses to be used in the "bcc" field of the final Intent.

@NonNull ShareCompat.IntentBuilder

Add an email address to be used in the "cc" field of the final Intent.

@NonNull ShareCompat.IntentBuilder
addEmailCc(String[] addresses)

Add an array of email addresses to be used in the "cc" field of the final Intent.

@NonNull ShareCompat.IntentBuilder

Add an email address to be used in the "to" field of the final Intent.

@NonNull ShareCompat.IntentBuilder
addEmailTo(String[] addresses)

Add an array of email addresses to be used in the "to" field of the final Intent.

@NonNull ShareCompat.IntentBuilder
addStream(@NonNull Uri streamUri)

Add a stream URI to the data that should be shared.

@NonNull Intent

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.

static @NonNull ShareCompat.IntentBuilder
from(@NonNull Activity launchingActivity)

This method is deprecated.

Use the constructor of IntentBuilder

@