Share via


Instrumentation.ActivityMonitor.WaitForActivityWithTimeout(Int64) Method

Definition

Block until an Activity is created that matches this monitor, returning the resulting activity or till the timeOut period expires.

[Android.Runtime.Register("waitForActivityWithTimeout", "(J)Landroid/app/Activity;", "")]
public Android.App.Activity WaitForActivityWithTimeout (long timeOut);
[<Android.Runtime.Register("waitForActivityWithTimeout", "(J)Landroid/app/Activity;", "")>]
member this.WaitForActivityWithTimeout : int64 -> Android.App.Activity

Parameters

timeOut
Int64

Time to wait in milliseconds before the activity is created.

Returns

Activity

Attributes

Remarks

Block until an Activity is created that matches this monitor, returning the resulting activity or till the timeOut period expires. If the timeOut expires before the activity is started, return null.

Java documentation for android.app.Instrumentation.ActivityMonitor.waitForActivityWithTimeout(long).

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