RingtoneManager.OpenDefaultRingtoneUri(Context, Uri) 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.
Opens a raw file descriptor to read the data under the given default URI.
[Android.Runtime.Register("openDefaultRingtoneUri", "(Landroid/content/Context;Landroid/net/Uri;)Landroid/content/res/AssetFileDescriptor;", "", ApiSince=29)]
public static Android.Content.Res.AssetFileDescriptor? OpenDefaultRingtoneUri (Android.Content.Context context, Android.Net.Uri uri);
[<Android.Runtime.Register("openDefaultRingtoneUri", "(Landroid/content/Context;Landroid/net/Uri;)Landroid/content/res/AssetFileDescriptor;", "", ApiSince=29)>]
static member OpenDefaultRingtoneUri : Android.Content.Context * Android.Net.Uri -> Android.Content.Res.AssetFileDescriptor
Parameters
- context
- Context
the Context to use when resolving the Uri.
- uri
- Uri
The desired default URI to open.
Returns
a new AssetFileDescriptor pointing to the file. You own this descriptor
and are responsible for closing it when done. This value may be null
.
- Attributes
Remarks
Opens a raw file descriptor to read the data under the given default URI.
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.