Megosztás a következőn keresztül:


DocumentsContract.Document.FlagSupportsWrite Field

Definition

Caution

This constant will be removed in the future version. Use Android.Provider.DocumentContractFlags enum directly instead of this field.

Flag indicating that a document supports writing.

[Android.Runtime.Register("FLAG_SUPPORTS_WRITE")]
[System.Obsolete("This constant will be removed in the future version. Use Android.Provider.DocumentContractFlags enum directly instead of this field.", true)]
public const Android.Provider.DocumentContractFlags FlagSupportsWrite = 2;
[<Android.Runtime.Register("FLAG_SUPPORTS_WRITE")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Provider.DocumentContractFlags enum directly instead of this field.", true)>]
val mutable FlagSupportsWrite : Android.Provider.DocumentContractFlags

Field Value

Value = 2
Attributes

Remarks

Flag indicating that a document supports writing.

When a document is opened with Intent#ACTION_OPEN_DOCUMENT, the calling application is granted both Intent#FLAG_GRANT_READ_URI_PERMISSION and Intent#FLAG_GRANT_WRITE_URI_PERMISSION. However, the actual writability of a document may change over time, for example due to remote access changes. This flag indicates that a document client can expect ContentResolver#openOutputStream(Uri) to succeed.

Java documentation for android.provider.DocumentsContract.Document.FLAG_SUPPORTS_WRITE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to