Megosztás a következőn keresztül:


ContextWrapper.SendStickyBroadcast(Intent) Method

Definition

Caution

deprecated

Perform a #sendBroadcast(Intent) that is "sticky," meaning the Intent you are sending stays around after the broadcast is complete, so that others can quickly retrieve that data through the return value of #registerReceiver(BroadcastReceiver, IntentFilter).

[Android.Runtime.Register("sendStickyBroadcast", "(Landroid/content/Intent;)V", "GetSendStickyBroadcast_Landroid_content_Intent_Handler")]
[System.Obsolete("deprecated")]
public override void SendStickyBroadcast (Android.Content.Intent? intent);
[<Android.Runtime.Register("sendStickyBroadcast", "(Landroid/content/Intent;)V", "GetSendStickyBroadcast_Landroid_content_Intent_Handler")>]
[<System.Obsolete("deprecated")>]
override this.SendStickyBroadcast : Android.Content.Intent -> unit

Parameters

intent
Intent

The Intent to broadcast; all receivers matching this Intent will receive the broadcast, and the Intent will be held to be re-broadcast to future receivers.

Attributes

Remarks

Java documentation for android.content.ContextWrapper.sendStickyBroadcast(android.content.Intent, android.os.Bundle).

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