Service.OnStart(Intent, Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
deprecated
此方法在 API 等級 15 中被棄用。
[Android.Runtime.Register("onStart", "(Landroid/content/Intent;I)V", "GetOnStart_Landroid_content_Intent_IHandler")]
[System.Obsolete("deprecated")]
public virtual void OnStart(Android.Content.Intent? intent, int startId);
[<Android.Runtime.Register("onStart", "(Landroid/content/Intent;I)V", "GetOnStart_Landroid_content_Intent_IHandler")>]
[<System.Obsolete("deprecated")>]
abstract member OnStart : Android.Content.Intent * int -> unit
override this.OnStart : Android.Content.Intent * int -> unit
參數
- intent
- Intent
意圖
- startId
- Int32
int
- 屬性
備註
此方法在 API 等級 15 中被棄用。 改用 onStartCommand(Intent, int, int) 來實作。
Android 參考資料。android.app.Service.onStart
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。