Language

BroadcastOptions.SetDeliveryGroupMatchingKey(String, String) Method

Definition

Set namespace and key to identify the delivery group that this broadcast belongs to.

[Android.Runtime.Register("setDeliveryGroupMatchingKey", "(Ljava/lang/String;Ljava/lang/String;)Landroid/app/BroadcastOptions;", "GetSetDeliveryGroupMatchingKey_Ljava_lang_String_Ljava_lang_String_Handler", ApiSince=34)]
public virtual Android.App.BroadcastOptions SetDeliveryGroupMatchingKey(string namespace, string key);
[<Android.Runtime.Register("setDeliveryGroupMatchingKey", "(Ljava/lang/String;Ljava/lang/String;)Landroid/app/BroadcastOptions;", "GetSetDeliveryGroupMatchingKey_Ljava_lang_String_Ljava_lang_String_Handler", ApiSince=34)>]
abstract member SetDeliveryGroupMatchingKey : string * string -> Android.App.BroadcastOptions
override this.SetDeliveryGroupMatchingKey : string * string -> Android.App.BroadcastOptions

Parameters

namespace
String

String: This value cannot be null.

key
String

String: This value cannot be null.

Returns

This Android.App.BroadcastOptions instance, allowing calls to be chained.

Attributes

Remarks

Set namespace and key to identify the delivery group that this broadcast belongs to. If namespace and key are specified, then another broadcast will be considered to be in the same delivery group as this iff it has the same namespace and key. If not matching key using this API then by default Intent.filterEquals(Intent) will be used to identify the delivery group.

Android reference for android.app.BroadcastOptions.setDeliveryGroupMatchingKey.

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