public final class

ShareTarget.FileFormField

extends java.lang.Object

 java.lang.Object

↳androidx.browser.trusted.sharing.ShareTarget.FileFormField

Overview

Defines a form field for sharing files.

Summary

Fields
public final java.util.List<java.lang.String>acceptedTypes

List of MIME types or file extensions to be sent in this field.

public static final java.lang.StringKEY_ACCEPTED_TYPES

Bundle key for ShareTarget.FileFormField.acceptedTypes.

public static final java.lang.StringKEY_NAME

Bundle key for ShareTarget.FileFormField.name.

public final java.lang.Stringname

Name of the form field.

Constructors
publicFileFormField(java.lang.String name, java.util.List<java.lang.String> acceptedTypes)

Creates a ShareTarget.FileFormField 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_NAME

Bundle key for ShareTarget.FileFormField.name.

public static final java.lang.String KEY_ACCEPTED_TYPES

Bundle key for ShareTarget.FileFormField.acceptedTypes.

public final java.lang.String name

Name of the form field.

public final java.util.List<java.lang.String> acceptedTypes

List of MIME types or file extensions to be sent in this field. The MIME type matching algorithm is specified by https://wicg.github.io/web-share-target/level-2/#determining-if-a-file-is-accepted.

Constructors

public FileFormField(java.lang.String name, java.util.List<java.lang.String> acceptedTypes)

Creates a ShareTarget.FileFormField with the given parameters.

Parameters:

name: The ShareTarget.FileFormField.name.
acceptedTypes: The ShareTarget.FileFormField.acceptedTypes.