public class

ShareTarget.Params

extends java.lang.Object

 java.lang.Object

↳androidx.browser.trusted.sharing.ShareTarget.Params

Overview

Contains parameter names to be used for the data being shared.

Summary

Fields
public final java.util.List<ShareTarget.FileFormField>files

Defines form fields for the files being shared, see ShareTarget.FileFormField.

public static final java.lang.StringKEY_FILES

Bundle key for ShareTarget.Params.files.

public static final java.lang.StringKEY_TEXT

Bundle key for ShareTarget.Params.text.

public static final java.lang.StringKEY_TITLE

Bundle key for ShareTarget.Params.title.

public final java.lang.Stringtext

The name of the query parameter used for the body of the message being shared.

public final java.lang.Stringtitle

The name of the query parameter used for the title of the message being shared.

Constructors
publicParams(java.lang.String title, java.lang.String text, java.util.List<ShareTarget.FileFormField> files)

Creates a ShareTarget.Params with the given parameters.

Methods
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Fields

public static final java.lang.String KEY_TITLE

Bundle key for ShareTarget.Params.title.

public static final java.lang.String KEY_TEXT

Bundle key for ShareTarget.Params.text.

public static final java.lang.String KEY_FILES

Bundle key for ShareTarget.Params.files.

public final java.lang.String title

The name of the query parameter used for the title of the message being shared.

public final java.lang.String text

The name of the query parameter used for the body of the message being shared.

public final java.util.List<ShareTarget.FileFormField> files

Defines form fields for the files being shared, see ShareTarget.FileFormField. Web Share Target can have multiple form fields associated with different MIME types. If a file passes the MIME type filters of several ShareTarget.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

Constructors

public Params(java.lang.String title, java.lang.String text, java.util.List<ShareTarget.FileFormField> files)

Creates a ShareTarget.Params with the given parameters.

Parameters:

title: The ShareTarget.Params.title.
text: The ShareTarget.Params.text.
files: The ShareTarget.Params.files.