MediaMetadataEditor.GetLong(MediaMetadataEditKey, Int64) Method

Definition

Caution

deprecated

Returns the long value for the key.

[Android.Runtime.Register("getLong", "(IJ)J", "GetGetLong_IJHandler")]
[System.Obsolete("deprecated")]
public virtual long GetLong (Android.Media.MediaMetadataEditKey key, long defaultValue);
[<Android.Runtime.Register("getLong", "(IJ)J", "GetGetLong_IJHandler")>]
[<System.Obsolete("deprecated")>]
abstract member GetLong : Android.Media.MediaMetadataEditKey * int64 -> int64
override this.GetLong : Android.Media.MediaMetadataEditKey * int64 -> int64

Parameters

key
MediaMetadataEditKey

one of the keys supported in #putLong(int, long)

defaultValue
Int64

the value returned if the key is not present

Returns

the long value for the key, or the supplied default value if the key is not present

Attributes

Exceptions

Remarks

Returns the long value for the key.

Java documentation for android.media.MediaMetadataEditor.getLong(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