ShareData
public final class ShareData
Contains data to be delivered to a Web Share Target via a Trusted Web Activity. See setShareParams.
Summary
Constants |
|
|---|---|
static final String |
KEY_TEXT = "androidx.browser.trusted.sharing.KEY_TEXT"Bundle key for |
static final String |
KEY_TITLE = "androidx.browser.trusted.sharing.KEY_TITLE"Bundle key for |
static final String |
KEY_URIS = "androidx.browser.trusted.sharing.KEY_URIS"Bundle key for |
Public fields |
|
|---|---|
final @Nullable String |
Text of the shared message. |
final @Nullable String |
Title of the shared message. |
final @Nullable List<Uri> |
URIs of files to be shared. |
Public constructors |
|---|
|
Creates a |
Public methods |
|
|---|---|
static @NonNull ShareData |
fromBundle(@NonNull Bundle bundle)Unpacks the object from a |
@NonNull Bundle |
toBundle()Packs the object into a |
Constants
KEY_TEXT
Added in 1.2.0
public static final String KEY_TEXT = "androidx.browser.trusted.sharing.KEY_TEXT"
Bundle key for text.