Sdílet prostřednictvím


Camera.ActionNewVideo Field

Definition

Caution

deprecated

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

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

Field Value

Attributes

Remarks

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

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 video 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_VIDEO.

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