ContextWrapper.StopService(Intent) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
請求停止某項應用程式服務。
[Android.Runtime.Register("stopService", "(Landroid/content/Intent;)Z", "GetStopService_Landroid_content_Intent_Handler")]
public override bool StopService(Android.Content.Intent? name);
[<Android.Runtime.Register("stopService", "(Landroid/content/Intent;)Z", "GetStopService_Landroid_content_Intent_Handler")>]
override this.StopService : Android.Content.Intent -> bool
參數
- name
- Intent
服務將停止的描述。 意圖必須是完全明確的(提供元件名稱),或指定目標的特定套件名稱。
傳回
如果已有符合該意圖的服務正在執行,則該服務會停止並回傳 true;否則會回傳假。
- 屬性
備註
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
Java 文件 android.content.ContextWrapper.stopService(android.content.Intent)。