LocalActivityManager.CurrentActivity 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
deprecated
擷取目前正在執行的活動。
[System.Obsolete("deprecated")]
public virtual Android.App.Activity? CurrentActivity { [Android.Runtime.Register("getCurrentActivity", "()Landroid/app/Activity;", "GetGetCurrentActivityHandler")] get; }
[<System.Obsolete("deprecated")>]
[<get: Android.Runtime.Register("getCurrentActivity", "()Landroid/app/Activity;", "GetGetCurrentActivityHandler")>]
member this.CurrentActivity : Android.App.Activity
屬性值
當前執行(恢復的)活動,若沒有則為空
- 屬性
備註
擷取目前正在執行的活動。
另請參閱:
Android 參考資料。android.app.LocalActivityManager.getCurrentActivity
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。