MediaMetadata.Builder.PutLong(String, Int64) Method
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.
Put a long value into the metadata.
[Android.Runtime.Register("putLong", "(Ljava/lang/String;J)Landroid/media/MediaMetadata$Builder;", "")]
public Android.Media.MediaMetadata.Builder? PutLong(string? key, long value);
[<Android.Runtime.Register("putLong", "(Ljava/lang/String;J)Landroid/media/MediaMetadata$Builder;", "")>]
member this.PutLong : string * int64 -> Android.Media.MediaMetadata.Builder
Parameters
- key
- String
The key for referencing this value. Value is one of the following: MediaMetadata.METADATA_KEY_DURATION MediaMetadata.METADATA_KEY_YEAR MediaMetadata.METADATA_KEY_TRACK_NUMBER MediaMetadata.METADATA_KEY_NUM_TRACKS MediaMetadata.METADATA_KEY_DISC_NUMBER MediaMetadata.METADATA_KEY_BT_FOLDER_TYPE
- value
- Int64
The long value to store
Returns
The Builder to allow chaining
- Attributes
Remarks
Put a long value into the metadata. Custom keys may be used, but if the METADATA_KEYs defined in this class are used they may only be one of the following: MediaMetadata.METADATA_KEY_DURATION MediaMetadata.METADATA_KEY_TRACK_NUMBER MediaMetadata.METADATA_KEY_NUM_TRACKS MediaMetadata.METADATA_KEY_DISC_NUMBER MediaMetadata.METADATA_KEY_YEAR
Android reference for android.media.MediaMetadata.Builder.putLong.
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.