ShareTarget.FileFormField


class ShareTarget.FileFormField


Defines a form field for sharing files.

Summary

Constants

const String!
KEY_ACCEPTED_TYPES = "androidx.browser.trusted.sharing.KEY_ACCEPTED_TYPES"

Bundle key for acceptedTypes.

const String!
KEY_NAME = "androidx.browser.trusted.sharing.KEY_FILE_NAME"

Bundle key for name.

Public constructors

FileFormField(name: String, acceptedTypes: (Mutable)List<String!>)

Creates a FileFormField with the given parameters.

Public properties

(Mutable)List<String!>

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

String

Name of the form field.

Constants

KEY_ACCEPTED_TYPES

Added in 1.2.0
const val KEY_ACCEPTED_TYPES = "androidx.browser.trusted.sharing.KEY_ACCEPTED_TYPES": String!

Bundle key for acceptedTypes.

KEY_NAME

Added in 1.2.0
const val KEY_NAME = "androidx.browser.trusted.sharing.KEY_FILE_NAME": String!

Bundle key for name.

Public constructors

FileFormField

Added in 1.2.0
FileFormField(name: String, acceptedTypes: (Mutable)List<String!>)

Creates a FileFormField with the given parameters.

Parameters
name: String

The name.

acceptedTypes: (Mutable)List<String!>

The acceptedTypes.

Public properties

acceptedTypes

Added in 1.2.0
val acceptedTypes: (Mutable)List<String!>

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.

name

Added in 1.2.0
val nameString

Name of the form field.