다음을 통해 공유


RingtoneManager.OpenDefaultRingtoneUri(Context, Uri) Method

Definition

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.

Java documentation for android.media.RingtoneManager.openDefaultRingtoneUri(android.content.Context, android.net.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.

Applies to