語言

MockContext.StartService(Intent) 方法

定義

請求啟動某項應用程式服務。

[Android.Runtime.Register("startService", "(Landroid/content/Intent;)Landroid/content/ComponentName;", "GetStartService_Landroid_content_Intent_Handler")]
public override Android.Content.ComponentName? StartService(Android.Content.Intent? service);
[<Android.Runtime.Register("startService", "(Landroid/content/Intent;)Landroid/content/ComponentName;", "GetStartService_Landroid_content_Intent_Handler")>]
override this.StartService : Android.Content.Intent -> Android.Content.ComponentName

參數

service
Intent

識別即將啟動的服務。 意圖必須是完全明確的(提供元件名稱),或指定目標的特定套件名稱。 意圖附加值可包含,以配合此特定啟動呼叫提供論點。

傳回

屬性

備註

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

適用於