MediaStore.MetaDataStillImageCameraPrewarmService Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Name under which an activity handling #INTENT_ACTION_STILL_IMAGE_CAMERA
or
#INTENT_ACTION_STILL_IMAGE_CAMERA_SECURE
publishes the service name for its prewarm
service.
[Android.Runtime.Register("META_DATA_STILL_IMAGE_CAMERA_PREWARM_SERVICE", ApiSince=23)]
public const string MetaDataStillImageCameraPrewarmService;
[<Android.Runtime.Register("META_DATA_STILL_IMAGE_CAMERA_PREWARM_SERVICE", ApiSince=23)>]
val mutable MetaDataStillImageCameraPrewarmService : string
Field Value
- Attributes
Remarks
Name under which an activity handling #INTENT_ACTION_STILL_IMAGE_CAMERA
or #INTENT_ACTION_STILL_IMAGE_CAMERA_SECURE
publishes the service name for its prewarm service.
This meta-data should reference the fully qualified class name of the prewarm service extending CameraPrewarmService
.
The prewarm service will get bound and receive a prewarm signal CameraPrewarmService#onPrewarm()
when a camera launch intent fire might be imminent. An application implementing a prewarm service should do the absolute minimum amount of work to initialize the camera in order to reduce startup time in likely case that shortly after a camera launch intent would be sent.
Java documentation for android.provider.MediaStore.META_DATA_STILL_IMAGE_CAMERA_PREWARM_SERVICE
.
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.