Share via


AlarmClock.ActionSetTimer Field

Definition

Activity Action: Set a timer.

[Android.Runtime.Register("ACTION_SET_TIMER")]
public const string ActionSetTimer;
[<Android.Runtime.Register("ACTION_SET_TIMER")>]
val mutable ActionSetTimer : string

Field Value

Attributes

Remarks

Activity Action: Set a timer.

Activates an existing timer or creates a new one.

This action requests a timer to be started for a specific #EXTRA_LENGTH length of time. If no #EXTRA_LENGTH length is specified, the implementation should start an activity that is capable of setting a timer (#EXTRA_SKIP_UI is ignored in this case). If a #EXTRA_LENGTH length is specified, and #EXTRA_SKIP_UI is true, the implementation should remove this timer after it has been dismissed. If an identical, unused timer exists matching both parameters, an implementation may re-use it instead of creating a new one (in this case, the timer should not be removed after dismissal).

This action always starts the timer.

<h3>Request parameters</h3> <ul> <li>#EXTRA_LENGTH<em>(optional)</em>: The length of the timer being set. <li>#EXTRA_MESSAGE<em>(optional)</em>: A custom message for the timer. <li>#EXTRA_SKIP_UI<em>(optional)</em>: Whether or not to display an activity for setting this timer. </ul>

Java documentation for android.provider.AlarmClock.ACTION_SET_TIMER.

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