FileFormField
class FileFormField
kotlin.Any | |
↳ | androidx.browser.trusted.sharing.ShareTarget.FileFormField |
Defines a form field for sharing files.
Summary
Constants | |
---|---|
static String |
Bundle key for |
static String |
Bundle key for |
Public constructors | |
---|---|
<init>(@NonNull : String, @NonNull : MutableList<String!>) Creates a |
Properties | |
---|---|
MutableList<String!> |
List of MIME types or file extensions to be sent in this field. |
String |
Name of the form field. |
Constants
KEY_ACCEPTED_TYPES
static val KEY_ACCEPTED_TYPES: String
Bundle key for acceptedTypes
.
Value: "androidx.browser.trusted.sharing.KEY_ACCEPTED_TYPES"
KEY_NAME
static val KEY_NAME: String
Bundle key for name
.
Value: "androidx.browser.trusted.sharing.KEY_FILE_NAME"
Public constructors
<init>
FileFormField(
@NonNull : String,
@NonNull : MutableList<String!>)
Creates a FileFormField
with the given parameters.
Parameters | |
---|---|
name |
String: The name . |
acceptedTypes |
MutableList<String!>: The acceptedTypes . |
Properties
acceptedTypes
@NonNull val acceptedTypes: MutableList<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.