Share via


ViewStructure.SetReceiveContentMimeTypes(String[]) Method

Definition

Sets the MIME types accepted by this view.

[Android.Runtime.Register("setReceiveContentMimeTypes", "([Ljava/lang/String;)V", "GetSetReceiveContentMimeTypes_arrayLjava_lang_String_Handler", ApiSince=31)]
public virtual void SetReceiveContentMimeTypes (string[]? mimeTypes);
[<Android.Runtime.Register("setReceiveContentMimeTypes", "([Ljava/lang/String;)V", "GetSetReceiveContentMimeTypes_arrayLjava_lang_String_Handler", ApiSince=31)>]
abstract member SetReceiveContentMimeTypes : string[] -> unit
override this.SetReceiveContentMimeTypes : string[] -> unit

Parameters

mimeTypes
String[]
Attributes

Remarks

Sets the MIME types accepted by this view. See View#getReceiveContentMimeTypes().

Should only be set when the node is used for Autofill or Content Capture purposes - it will be ignored when used for Assist.

Java documentation for android.view.ViewStructure.setReceiveContentMimeTypes(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