LocalActivityManager.CurrentId Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
deprecated
Retrieve the ID of the activity that is currently running.
[System.Obsolete("deprecated")]
public virtual string? CurrentId { [Android.Runtime.Register("getCurrentId", "()Ljava/lang/String;", "GetGetCurrentIdHandler")] get; }
[<System.Obsolete("deprecated")>]
[<get: Android.Runtime.Register("getCurrentId", "()Ljava/lang/String;", "GetGetCurrentIdHandler")>]
member this.CurrentId : string
Property Value
the ID of the currently running (resumed) Activity, or null if there is not one
- Attributes
Remarks
Retrieve the ID of the activity that is currently running.
Java documentation for android.app.LocalActivityManager.getCurrentId()
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
See also
- <xref:Android.App.LocalActivityManager.StartActivity(System.String%2c+Android.Content.Intent)>
- CurrentActivity