語言

MockContext.StopService(Intent) 方法

定義

請求停止某項應用程式服務。

[Android.Runtime.Register("stopService", "(Landroid/content/Intent;)Z", "GetStopService_Landroid_content_Intent_Handler")]
public override bool StopService(Android.Content.Intent? service);
[<Android.Runtime.Register("stopService", "(Landroid/content/Intent;)Z", "GetStopService_Landroid_content_Intent_Handler")>]
override this.StopService : Android.Content.Intent -> bool

參數

service
Intent

服務將停止的描述。 意圖必須是完全明確的(提供元件名稱),或指定目標的特定套件名稱。

傳回

屬性

備註

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

適用於