語言

ContextWrapper.SendStickyBroadcast(Intent) 方法

定義

警告

deprecated

執行 #sendBroadcast(Intent) 一個「黏性」的行為,意即你傳送的意圖會在廣播完成後仍保留,讓其他人能透過回傳值 #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

參數

intent
Intent

廣播意圖;所有符合此意圖的接收器將接收該訊號,且意圖將被認定為重新廣播給未來的接收器。

屬性

備註

Java 文件 android.content.ContextWrapper.sendStickyBroadcast(android.content.Intent, android.os.Bundle)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於