Android 12 Developer Preview is here! Try it out, and give us your feedback!

Metadata.Builder

public static abstract class Metadata.Builder
extends Object

java.lang.Object
   ↳ androidx.camera.view.video.Metadata.Builder


The builder for Metadata.

Summary

Public methods

abstract Metadata build()

Build the Metadata from this builder.

abstract Metadata.Builder setLocation(Location location)

Sets a Location object representing a geographic location where the video was taken.

Inherited methods

Public methods

build

public abstract Metadata build ()

Build the Metadata from this builder.

Returns
Metadata

setLocation

public abstract Metadata.Builder setLocation (Location location)

Sets a Location object representing a geographic location where the video was taken.

If null, no location information will be saved with the video. Default value is null.

Parameters
location Location

Returns
Metadata.Builder