SparseBooleanArray.IndexOfValue(Boolean) 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 index for which #valueAt
would return the
specified key, or a negative number if no keys map to the
specified value.
[Android.Runtime.Register("indexOfValue", "(Z)I", "GetIndexOfValue_ZHandler")]
public virtual int IndexOfValue (bool value);
[<Android.Runtime.Register("indexOfValue", "(Z)I", "GetIndexOfValue_ZHandler")>]
abstract member IndexOfValue : bool -> int
override this.IndexOfValue : bool -> int
Parameters
- value
- Boolean
Returns
- Attributes
Remarks
Returns an index for which #valueAt
would return the specified key, or a negative number if no keys map to the specified value. Beware that this is a linear search, unlike lookups by key, and that multiple keys can map to the same value and this will find only one of them.
Java documentation for android.util.SparseBooleanArray.indexOfValue(boolean)
.
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.