Android APIs
public static final class

AlarmManager.AlarmClockInfo

extends Object
implements Parcelable
java.lang.Object
   ↳ android.app.AlarmManager.AlarmClockInfo

Class Overview

An immutable description of an alarm clock.

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<AlarmManager.AlarmClockInfo> CREATOR
Public Constructors
AlarmManager.AlarmClockInfo(long triggerTime, PendingIntent showIntent)
Creates a new alarm clock description.
Public Methods
int describeContents()
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
PendingIntent getShowIntent()
Returns an intent intent that can be used to show or edit details of the alarm clock in the application that scheduled it.
long getTriggerTime()
Returns the time at which the alarm is going to trigger.
void writeToParcel(Parcel dest, int flags)
Flatten this object in to a Parcel.
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Fields

public static final Creator<AlarmManager.AlarmClockInfo> CREATOR

Added in API level 21

Public Constructors

public AlarmManager.AlarmClockInfo (long triggerTime, PendingIntent showIntent)

Added in API level 21

Creates a new alarm clock description.

Parameters
triggerTime time at which the underlying alarm is triggered in wall time milliseconds since the epoch
showIntent an intent that can be used to show or edit details of the alarm clock.

Public Methods

public int describeContents ()

Added in API level 21

Describe the kinds of special objects contained in this Parcelable's marshalled representation.

Returns
  • a bitmask indicating the set of special object types marshalled by the Parcelable.

public PendingIntent getShowIntent ()

Added in API level 21

Returns an intent intent that can be used to show or edit details of the alarm clock in the application that scheduled it.

Beware that any application can retrieve and send this intent, potentially with additional fields filled in. See PendingIntent.send() and Intent.fillIn() for details.

public long getTriggerTime ()

Added in API level 21

Returns the time at which the alarm is going to trigger. This value is UTC wall clock time in milliseconds, as returned by currentTimeMillis() for example.

public void writeToParcel (Parcel dest, int flags)

Added in API level 21

Flatten this object in to a Parcel.

Parameters
dest The Parcel in which the object should be written.
flags Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE.