Udostępnij za pośrednictwem


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
key
String

Returns

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 neither matching key using this API nor matching filter using #setDeliveryGroupMatchingFilter(IntentFilter) is specified, then by default Intent#filterEquals(Intent) will be used to identify the delivery group.

Java documentation for android.app.BroadcastOptions.setDeliveryGroupMatchingKey(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