Sdílet prostřednictvím


Camera.ActionNewPicture Field

Definition

Caution

deprecated

Broadcast Action: A new picture is taken by the camera, and the entry of the picture has been added to the media store.

[Android.Runtime.Register("ACTION_NEW_PICTURE")]
[System.Obsolete("deprecated")]
public const string ActionNewPicture;
[<Android.Runtime.Register("ACTION_NEW_PICTURE")>]
[<System.Obsolete("deprecated")>]
val mutable ActionNewPicture : string

Field Value

Attributes

Remarks

Broadcast Action: A new picture is taken by the camera, and the entry of the picture has been added to the media store. android.content.Intent#getData is URI of the picture.

In android.os.Build.VERSION_CODES#N Android N this broadcast was removed, and applications are recommended to use android.app.job.JobInfo.Builder JobInfo.Builder.android.app.job.JobInfo.Builder#addTriggerContentUri instead.

In android.os.Build.VERSION_CODES#O Android O this broadcast has been brought back, but only for <em>registered</em> receivers. Apps that are actively running can again listen to the broadcast if they want an immediate clear signal about a picture being taken, however anything doing heavy work (or needing to be launched) as a result of this should still use JobScheduler.

Java documentation for android.hardware.Camera.ACTION_NEW_PICTURE.

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