AlertDialog.Builder.SetCursor 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.
Overloads
| Name | Description |
|---|---|
| SetCursor(ICursor, IDialogInterfaceOnClickListener, String) |
Set a list of items, which are supplied by the given Cursor, to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener. |
| SetCursor(ICursor, EventHandler<DialogClickEventArgs>, String) |
SetCursor(ICursor, IDialogInterfaceOnClickListener, String)
Set a list of items, which are supplied by the given Cursor, to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener.
[Android.Runtime.Register("setCursor", "(Landroid/database/Cursor;Landroid/content/DialogInterface$OnClickListener;Ljava/lang/String;)Landroid/app/AlertDialog$Builder;", "GetSetCursor_Landroid_database_Cursor_Landroid_content_DialogInterface_OnClickListener_Ljava_lang_String_Handler")]
public virtual Android.App.AlertDialog.Builder SetCursor(Android.Database.ICursor cursor, Android.Content.IDialogInterfaceOnClickListener listener, string labelColumn);
[<Android.Runtime.Register("setCursor", "(Landroid/database/Cursor;Landroid/content/DialogInterface$OnClickListener;Ljava/lang/String;)Landroid/app/AlertDialog$Builder;", "GetSetCursor_Landroid_database_Cursor_Landroid_content_DialogInterface_OnClickListener_Ljava_lang_String_Handler")>]
abstract member SetCursor : Android.Database.ICursor * Android.Content.IDialogInterfaceOnClickListener * string -> Android.App.AlertDialog.Builder
override this.SetCursor : Android.Database.ICursor * Android.Content.IDialogInterfaceOnClickListener * string -> Android.App.AlertDialog.Builder
Parameters
- cursor
- ICursor
Cursor: The Cursor to supply the list of items
- listener
- IDialogInterfaceOnClickListener
DialogInterface.OnClickListener: The listener that will be called when an item is clicked.
- labelColumn
- String
String: The column name on the cursor containing the string to display in the label.
Returns
This Builder object to allow for chaining of calls to set methods
- Attributes
Remarks
Set a list of items, which are supplied by the given Cursor, to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener.
Android reference for android.app.AlertDialog.Builder.setCursor.
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
SetCursor(ICursor, EventHandler<DialogClickEventArgs>, String)
public Android.App.AlertDialog.Builder? SetCursor(Android.Database.ICursor cursor, EventHandler<Android.Content.DialogClickEventArgs> handler, string labelColumn);
member this.SetCursor : Android.Database.ICursor * EventHandler<Android.Content.DialogClickEventArgs> * string -> Android.App.AlertDialog.Builder
Parameters
- cursor
- ICursor
- handler
- EventHandler<DialogClickEventArgs>
- labelColumn
- String
Returns
Remarks
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.