ShareTarget.Params
public class ShareTarget.Params
Contains parameter names to be used for the data being shared.
Summary
Constants |
|
|---|---|
static final String |
KEY_FILES = "androidx.browser.trusted.sharing.KEY_FILES"Bundle key for |
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 |
Public fields |
|
|---|---|
final @Nullable List<ShareTarget.FileFormField> |
Defines form fields for the files being shared, see |
final @Nullable String |
The name of the query parameter used for the body of the message being shared. |
final @Nullable String |
The name of the query parameter used for the title of the message being shared. |
Public constructors |
|---|
Params(Creates a |
Constants
KEY_FILES
public static final String KEY_FILES = "androidx.browser.trusted.sharing.KEY_FILES"
Bundle key for files.
Public fields
files
public final @Nullable List<ShareTarget.FileFormField> files
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 FileFormFields, 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