共用方式為


VoiceInteractor.Request.Activity Property

Definition

Return the current Activity this request is associated with.

public virtual Android.App.Activity? Activity { [Android.Runtime.Register("getActivity", "()Landroid/app/Activity;", "GetGetActivityHandler", ApiSince=23)] get; }
[<get: Android.Runtime.Register("getActivity", "()Landroid/app/Activity;", "GetGetActivityHandler", ApiSince=23)>]
member this.Activity : Android.App.Activity

Property Value

Attributes

Remarks

Return the current Activity this request is associated with. Will change if the activity is restarted such as through a configuration change.

Java documentation for android.app.VoiceInteractor.Request.getActivity().

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