DocumentsProvider.IsChildDocument(String, String) Method

Definition

Test if a document is descendant (child, grandchild, etc) from the given parent.

[Android.Runtime.Register("isChildDocument", "(Ljava/lang/String;Ljava/lang/String;)Z", "GetIsChildDocument_Ljava_lang_String_Ljava_lang_String_Handler")]
public virtual bool IsChildDocument (string? parentDocumentId, string? documentId);
[<Android.Runtime.Register("isChildDocument", "(Ljava/lang/String;Ljava/lang/String;)Z", "GetIsChildDocument_Ljava_lang_String_Ljava_lang_String_Handler")>]
abstract member IsChildDocument : string * string -> bool
override this.IsChildDocument : string * string -> bool

Parameters

parentDocumentId
String

parent to verify against.

documentId
String

child to verify.

Returns

if given document is a descendant of the given parent.

Attributes

Remarks

Test if a document is descendant (child, grandchild, etc) from the given parent. For example, providers must implement this to support Intent#ACTION_OPEN_DOCUMENT_TREE. You should avoid making network requests to keep this request fast.

Java documentation for android.provider.DocumentsProvider.isChildDocument(java.lang.String, java.lang.String).

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