ShareTarget.Params
class ShareTarget.Params
Contains parameter names to be used for the data being shared.
Summary
Constants |
|
---|---|
const String! |
KEY_FILES = "androidx.browser.trusted.sharing.KEY_FILES" Bundle key for |
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 |
Public constructors |
---|
Creates a |
Public properties |
|
---|---|
(Mutable)List<ShareTarget.FileFormField!>? |
Defines form fields for the files being shared, see |
String? |
The name of the query parameter used for the body of the message being shared. |
String? |
The name of the query parameter used for the title of the message being shared. |
Constants
KEY_FILES
const val KEY_FILES = "androidx.browser.trusted.sharing.KEY_FILES": String!
Bundle key for files
.
Public constructors
Public properties
files
val files: (Mutable)List<ShareTarget.FileFormField!>?
Defines form fields for the files being shared, see FileFormField
. Web Share Target can have multiple form fields associated with different MIME types. If a file passes the MIME type filters of several FileFormField
s, the one that has the lowest index in this list is picked; see [1] for details. [1] https://wicg.github.io/web-share-target/level-2/#launching-the-web-share-target