Android.Content.Res.Resources.GetBoolean Method
Return a boolean associated with a particular resource ID.

Syntax

[Android.Runtime.Register("getBoolean", "(I)Z", "GetGetBoolean_IHandler")]
public virtual bool GetBoolean (int id)

Parameters

id
The desired resource identifier, as generated by the aapt tool. This integer encodes the package, type, and resource entry. The value 0 is an invalid identifier.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
!:NoType:android/content/res/Resources$NotFoundException;Href=../../../../reference/android/content/res/Resources.NotFoundException.htmlThrows NotFoundException if the given ID does not exist.

Remarks

Return a boolean associated with a particular resource ID. This can be used with any integral resource value, and will return true if it is non-zero.

[Android Documentation]

Requirements

Namespace: Android.Content.Res
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 3