Freigeben über


AlarmManager.SetTime(Int64) Method

Definition

Set the system wall clock time.

[Android.Runtime.Register("setTime", "(J)V", "GetSetTime_JHandler")]
[Android.Runtime.RequiresPermission("android.permission.SET_TIME")]
public virtual void SetTime (long millis);
[<Android.Runtime.Register("setTime", "(J)V", "GetSetTime_JHandler")>]
[<Android.Runtime.RequiresPermission("android.permission.SET_TIME")>]
abstract member SetTime : int64 -> unit
override this.SetTime : int64 -> unit

Parameters

millis
Int64

time in milliseconds since the Epoch

Attributes

Remarks

Set the system wall clock time. Requires the permission android.permission.SET_TIME.

Java documentation for android.app.AlarmManager.setTime(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