Sdílet prostřednictvím


RingtoneManager.Cursor Property

Definition

Returns a Cursor of all the ringtones available.

public virtual Android.Database.ICursor? Cursor { [Android.Runtime.Register("getCursor", "()Landroid/database/Cursor;", "GetGetCursorHandler")] get; }
[<get: Android.Runtime.Register("getCursor", "()Landroid/database/Cursor;", "GetGetCursorHandler")>]
member this.Cursor : Android.Database.ICursor

Property Value

A Cursor of all the ringtones available.

Attributes

Remarks

Returns a Cursor of all the ringtones available. The returned cursor will be the same cursor returned each time this method is called, so do not Cursor#close() the cursor. The cursor can be Cursor#deactivate() safely.

If RingtoneManager#RingtoneManager(Activity) was not used, the caller should manage the returned cursor through its activity's life cycle to prevent leaking the cursor.

Note that the list of ringtones available will differ depending on whether the caller has the android.Manifest.permission#READ_EXTERNAL_STORAGE permission.

Java documentation for android.media.RingtoneManager.getCursor().

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