MediaStore.ActionImageCaptureSecure 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.
Intent action that can be sent to have the camera application capture an image and return it when the device is secured (e.
[Android.Runtime.Register("ACTION_IMAGE_CAPTURE_SECURE")]
public const string ActionImageCaptureSecure;
[<Android.Runtime.Register("ACTION_IMAGE_CAPTURE_SECURE")>]
val mutable ActionImageCaptureSecure : string
Field Value
- Attributes
Remarks
Intent action that can be sent to have the camera application capture an image and return it when the device is secured (e.g. with a pin, password, pattern, or face unlock). Applications responding to this intent must not expose any personal content like existing photos or videos on the device. The applications should be careful not to share any photo or video with other applications or Internet. The activity should use Activity#setShowWhenLocked
to display on top of the lock screen while secured. There is no activity stack when this flag is used, so launching more than one activity is strongly discouraged.
The caller may pass an extra EXTRA_OUTPUT to control where this image will be written. If the EXTRA_OUTPUT is not present, then a small sized image is returned as a Bitmap object in the extra field. This is useful for applications that only need a small image. If the EXTRA_OUTPUT is present, then the full-sized image will be written to the Uri value of EXTRA_OUTPUT. As of android.os.Build.VERSION_CODES#LOLLIPOP
, this uri can also be supplied through android.content.Intent#setClipData(ClipData)
. If using this approach, you still must supply the uri through the EXTRA_OUTPUT field for compatibility with old applications. If you don't set a ClipData, it will be copied there for you when calling Context#startActivity(Intent)
.
Regardless of whether or not EXTRA_OUTPUT is present, when an image is captured via this intent, android.hardware.Camera#ACTION_NEW_PICTURE
won't be broadcasted.
Java documentation for android.provider.MediaStore.ACTION_IMAGE_CAPTURE_SECURE
.
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.