Share via


CameraPrewarmService.OnCooldown(Boolean) Method

Definition

Called when prewarm phase is done, either because the camera launch intent has been fired at this point or prewarm is no longer needed.

[Android.Runtime.Register("onCooldown", "(Z)V", "GetOnCooldown_ZHandler", ApiSince=23)]
public abstract void OnCooldown (bool cameraIntentFired);
[<Android.Runtime.Register("onCooldown", "(Z)V", "GetOnCooldown_ZHandler", ApiSince=23)>]
abstract member OnCooldown : bool -> unit

Parameters

cameraIntentFired
Boolean

Indicates whether the intent to launch the camera has been fired.

Attributes

Remarks

Called when prewarm phase is done, either because the camera launch intent has been fired at this point or prewarm is no longer needed. A client should close the camera immediately in the latter case.

In case the camera launch intent has been fired, there is no guarantee about the ordering of these two events. Cooldown might happen either before or after the activity has been created that handles the camera intent.

Java documentation for android.service.media.CameraPrewarmService.onCooldown(boolean).

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