Share via


PackageManager.SetMimeGroup(String, ICollection<String>) Method

Definition

Sets MIME group's MIME types.

[Android.Runtime.Register("setMimeGroup", "(Ljava/lang/String;Ljava/util/Set;)V", "GetSetMimeGroup_Ljava_lang_String_Ljava_util_Set_Handler", ApiSince=30)]
public virtual void SetMimeGroup (string mimeGroup, System.Collections.Generic.ICollection<string> mimeTypes);
[<Android.Runtime.Register("setMimeGroup", "(Ljava/lang/String;Ljava/util/Set;)V", "GetSetMimeGroup_Ljava_lang_String_Ljava_util_Set_Handler", ApiSince=30)>]
abstract member SetMimeGroup : string * System.Collections.Generic.ICollection<string> -> unit
override this.SetMimeGroup : string * System.Collections.Generic.ICollection<string> -> unit

Parameters

mimeGroup
String

MIME group to modify.

mimeTypes
ICollection<String>

new MIME types contained by MIME group.

Attributes

Remarks

Sets MIME group's MIME types.

Libraries should use a reverse-DNS prefix followed by a ':' character and library-specific group name to avoid namespace collisions, e.g. "com.example:myFeature".

Java documentation for android.content.pm.PackageManager.setMimeGroup(java.lang.String, java.util.Set<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