ISectionIndexer.GetSections 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.
Returns an array of objects representing sections of the list.
[Android.Runtime.Register("getSections", "()[Ljava/lang/Object;", "GetGetSectionsHandler:Android.Widget.ISectionIndexerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Lang.Object[]? GetSections ();
[<Android.Runtime.Register("getSections", "()[Ljava/lang/Object;", "GetGetSectionsHandler:Android.Widget.ISectionIndexerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetSections : unit -> Java.Lang.Object[]
Returns
the array of section objects
- Attributes
Remarks
Returns an array of objects representing sections of the list. The returned array and its contents should be non-null.
The list view will call toString() on the objects to get the preview text to display while scrolling. For example, an adapter may return an array of Strings representing letters of the alphabet. Or, it may return an array of objects whose toString() methods return their section titles.
Java documentation for android.widget.SectionIndexer.getSections()
.
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.