Aracılığıyla paylaş


Handler.PostAtTime Method

Definition

Overloads

PostAtTime(IRunnable, Int64)

Causes the Runnable r to be added to the message queue, to be run at a specific time given by <var>uptimeMillis</var>.

PostAtTime(Action, Int64)
PostAtTime(IRunnable, Object, Int64)

Causes the Runnable r to be added to the message queue, to be run at a specific time given by <var>uptimeMillis</var>.

PostAtTime(Action, Object, Int64)

PostAtTime(IRunnable, Int64)

Causes the Runnable r to be added to the message queue, to be run at a specific time given by <var>uptimeMillis</var>.

[Android.Runtime.Register("postAtTime", "(Ljava/lang/Runnable;J)Z", "")]
public bool PostAtTime (Java.Lang.IRunnable r, long uptimeMillis);
[<Android.Runtime.Register("postAtTime", "(Ljava/lang/Runnable;J)Z", "")>]
member this.PostAtTime : Java.Lang.IRunnable * int64 -> bool

Parameters

r
IRunnable

The Runnable that will be executed.

uptimeMillis
Int64

The absolute time at which the callback should run, using the android.os.SystemClock#uptimeMillis time-base.

Returns

Returns true if the Runnable was successfully placed in to the message queue. Returns false on failure, usually because the looper processing the message queue is exiting. Note that a result of true does not mean the Runnable will be processed -- if the looper is quit before the delivery time of the message occurs then the message will be dropped.

Attributes

Remarks

Causes the Runnable r to be added to the message queue, to be run at a specific time given by <var>uptimeMillis</var>. <b>The time-base is android.os.SystemClock#uptimeMillis.</b> Time spent in deep sleep will add an additional delay to execution. The runnable will be run on the thread to which this handler is attached.

Java documentation for android.os.Handler.postAtTime(java.lang.Runnable, 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

PostAtTime(Action, Int64)

public bool PostAtTime (Action action, long uptimeMillis);
member this.PostAtTime : Action * int64 -> bool

Parameters

action
Action
uptimeMillis
Int64

Returns

Remarks

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

PostAtTime(IRunnable, Object, Int64)

Causes the Runnable r to be added to the message queue, to be run at a specific time given by <var>uptimeMillis</var>.

[Android.Runtime.Register("postAtTime", "(Ljava/lang/Runnable;Ljava/lang/Object;J)Z", "")]
public bool PostAtTime (Java.Lang.IRunnable r, Java.Lang.Object? token, long uptimeMillis);
[<Android.Runtime.Register("postAtTime", "(Ljava/lang/Runnable;Ljava/lang/Object;J)Z", "")>]
member this.PostAtTime : Java.Lang.IRunnable * Java.Lang.Object * int64 -> bool

Parameters

r
IRunnable

The Runnable that will be executed.

token
Object

An instance which can be used to cancel r via #removeCallbacksAndMessages.

uptimeMillis
Int64

The absolute time at which the callback should run, using the android.os.SystemClock#uptimeMillis time-base.

Returns

Returns true if the Runnable was successfully placed in to the message queue. Returns false on failure, usually because the looper processing the message queue is exiting. Note that a result of true does not mean the Runnable will be processed -- if the looper is quit before the delivery time of the message occurs then the message will be dropped.

Attributes

Remarks

Causes the Runnable r to be added to the message queue, to be run at a specific time given by <var>uptimeMillis</var>. <b>The time-base is android.os.SystemClock#uptimeMillis.</b> Time spent in deep sleep will add an additional delay to execution. The runnable will be run on the thread to which this handler is attached.

Java documentation for android.os.Handler.postAtTime(java.lang.Runnable, java.lang.Object, 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.

See also

Applies to

PostAtTime(Action, Object, Int64)

public bool PostAtTime (Action action, Java.Lang.Object token, long uptimeMillis);
member this.PostAtTime : Action * Java.Lang.Object * int64 -> bool

Parameters

action
Action
token
Object
uptimeMillis
Int64

Returns

Remarks

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