MediaMetadataEditor.PutLong(MediaMetadataEditKey, Int64) Method

Definition

Caution

deprecated

Adds numerical information.

[Android.Runtime.Register("putLong", "(IJ)Landroid/media/MediaMetadataEditor;", "GetPutLong_IJHandler")]
[System.Obsolete("deprecated")]
public virtual Android.Media.MediaMetadataEditor? PutLong (Android.Media.MediaMetadataEditKey key, long value);
[<Android.Runtime.Register("putLong", "(IJ)Landroid/media/MediaMetadataEditor;", "GetPutLong_IJHandler")>]
[<System.Obsolete("deprecated")>]
abstract member PutLong : Android.Media.MediaMetadataEditKey * int64 -> Android.Media.MediaMetadataEditor
override this.PutLong : Android.Media.MediaMetadataEditKey * int64 -> Android.Media.MediaMetadataEditor

Parameters

key
MediaMetadataEditKey

the identifier of a the metadata field to set. Valid values are android.media.MediaMetadataRetriever#METADATA_KEY_CD_TRACK_NUMBER, android.media.MediaMetadataRetriever#METADATA_KEY_DISC_NUMBER, android.media.MediaMetadataRetriever#METADATA_KEY_DURATION (with a value expressed in milliseconds), android.media.MediaMetadataRetriever#METADATA_KEY_YEAR.

value
Int64

The long value for the given key

Returns

Returns a reference to the same MediaMetadataEditor object, so you can chain put calls together.

Attributes

Exceptions

Remarks

Adds numerical information. Note that none of the information added after #apply() has been called will be available to consumers of metadata stored by the MediaMetadataEditor.

Java documentation for android.media.MediaMetadataEditor.putLong(int, long).

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