Share via


DreamService.OnWakeUp Method

Definition

Called when the dream is being asked to stop itself and wake.

[Android.Runtime.Register("onWakeUp", "()V", "GetOnWakeUpHandler")]
public virtual void OnWakeUp ();
[<Android.Runtime.Register("onWakeUp", "()V", "GetOnWakeUpHandler")>]
abstract member OnWakeUp : unit -> unit
override this.OnWakeUp : unit -> unit
Attributes

Remarks

Called when the dream is being asked to stop itself and wake.

The default implementation simply calls #finish which ends the dream immediately. Subclasses may override this function to perform a smooth exit transition then call #finish afterwards.

Note that the dream will only be given a short period of time (currently about five seconds) to wake up. If the dream does not finish itself in a timely manner then the system will forcibly finish it once the time allowance is up.

Java documentation for android.service.dreams.DreamService.onWakeUp().

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