ShareData
class ShareData
kotlin.Any | |
↳ | androidx.browser.trusted.sharing.ShareData |
Contains data to be delivered to a Web Share Target via a Trusted Web Activity. See androidx.browser.trusted.TrustedWebActivityIntentBuilder#setShareParams
.
Summary
Constants |
|
---|---|
static String |
Bundle key for |
static String |
Bundle key for |
static String |
Bundle key for |
Public constructors |
|
---|---|
<init>(@Nullable : String?, @Nullable : String?, @Nullable : MutableList<Uri!>?) Creates a |
Public methods |
|
---|---|
static ShareData |
fromBundle(@NonNull : Bundle) Unpacks the object from a |
Bundle |
toBundle() Packs the object into a |
Properties |
|
---|---|
String? |
Text of the shared message. |
String? |
Title of the shared message. |
MutableList<Uri!>? |
URIs of files to be shared. |
Constants
KEY_TEXT
static val KEY_TEXT: String
Bundle key for text
.
Value: "androidx.browser.trusted.sharing.KEY_TEXT"
KEY_TITLE
static val KEY_TITLE: String
Bundle key for title
.
Value: "androidx.browser.trusted.sharing.KEY_TITLE"
KEY_URIS
static val KEY_URIS: String
Bundle key for uris
.
Value: "androidx.browser.trusted.sharing.KEY_URIS"
Public constructors
<init>
ShareData(@Nullable : String?, @Nullable : String?, @Nullable : MutableList<Uri!>?)
Creates a ShareData
with the given parameters.
Parameters | |
---|---|
title |
String?: The title . |
text |
String?: The text . |
uris |
String?: The uris . |
Public methods
fromBundle
@NonNull static fun fromBundle(@NonNull : Bundle): ShareData
Unpacks the object from a Bundle
.