ShareData
class ShareData
Contains data to be delivered to a Web Share Target via a Trusted Web Activity. See setShareParams
.
Summary
Constants |
|
---|---|
const String! |
KEY_TEXT = "androidx.browser.trusted.sharing.KEY_TEXT" Bundle key for |
const String! |
KEY_TITLE = "androidx.browser.trusted.sharing.KEY_TITLE" Bundle key for |
const String! |
KEY_URIS = "androidx.browser.trusted.sharing.KEY_URIS" Bundle key for |
Public constructors |
---|
Creates a |
Public functions |
|
---|---|
java-static ShareData |
fromBundle(bundle: Bundle) Unpacks the object from a |
Bundle |
toBundle() Packs the object into a |
Public properties |
|
---|---|
String? |
Text of the shared message. |
String? |
Title of the shared message. |
(Mutable)List<Uri!>? |
URIs of files to be shared. |
Constants
KEY_TEXT
Added in 1.2.0
const val KEY_TEXT = "androidx.browser.trusted.sharing.KEY_TEXT": String!
Bundle key for text
.
Public constructors
Public functions
fromBundle
Added in 1.2.0
java-static fun fromBundle(bundle: Bundle): ShareData
Unpacks the object from a Bundle
.