Android.Media.RingtoneManager.GetRingtone Method
Returns a Android.Media.Ringtone for a given sound URI.

Syntax

[Android.Runtime.Register("getRingtone", "(Landroid/content/Context;Landroid/net/Uri;)Landroid/media/Ringtone;", "")]
public static Ringtone GetRingtone (Android.Content.Context context, Android.Net.Uri ringtoneUri)

Parameters

context
A context used to query.
ringtoneUri
The Android.Net.Uri of a sound or ringtone.

Returns

Documentation for this section has not yet been entered.

Remarks

Returns a Android.Media.Ringtone for a given sound URI.

If the given URI cannot be opened for any reason, this method will attempt to fallback on another sound. If it cannot find any, it will return null.

[Android Documentation]

Requirements

Namespace: Android.Media
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1