Context.RemoveStickyBroadcast(Intent) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
deprecated
移除之前傳送的資料 #sendStickyBroadcast,讓黏著廣播彷彿從未發生過。
[Android.Runtime.Register("removeStickyBroadcast", "(Landroid/content/Intent;)V", "GetRemoveStickyBroadcast_Landroid_content_Intent_Handler")]
[Android.Runtime.RequiresPermission("android.permission.BROADCAST_STICKY")]
[System.Obsolete("deprecated")]
public abstract void RemoveStickyBroadcast(Android.Content.Intent? intent);
[<Android.Runtime.Register("removeStickyBroadcast", "(Landroid/content/Intent;)V", "GetRemoveStickyBroadcast_Landroid_content_Intent_Handler")>]
[<Android.Runtime.RequiresPermission("android.permission.BROADCAST_STICKY")>]
[<System.Obsolete("deprecated")>]
abstract member RemoveStickyBroadcast : Android.Content.Intent -> unit
參數
- intent
- Intent
之前播出的意圖。
- 屬性
備註
移除之前傳送的資料 #sendStickyBroadcast,讓黏著廣播彷彿從未發生過。
此會員已被棄用。 不應該使用置頂直播。 它們沒有安全性(任何人都能存取)、沒有保護(任何人都可以修改),還有許多其他問題。 建議的模式是使用非黏性廣播來回報 <em>某件事<或 em> 有變動,並有另一個機制讓應用程式隨時取得當前值。
Java 文件 android.content.Context.removeStickyBroadcast(android.content.Intent)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。