TypedArray.GetBoolean(Int32, Boolean) 메서드

정의

var>index</var>에서 <특성의 부울 값을 검색합니다.

[Android.Runtime.Register("getBoolean", "(IZ)Z", "GetGetBoolean_IZHandler")]
public virtual bool GetBoolean(int index, bool defValue);
[<Android.Runtime.Register("getBoolean", "(IZ)Z", "GetGetBoolean_IZHandler")>]
abstract member GetBoolean : int * bool -> bool
override this.GetBoolean : int * bool -> bool

매개 변수

index
Int32

검색할 특성의 인덱스입니다.

defValue
Boolean

특성이 정의되지 않았거나 정수로 강제 변환할 수 없는 경우 반환할 값입니다.

반품

특성의 부울 값이거나 특성이 정의되지 않았거나 정수로 강제 변환할 수 없는 경우 defValue입니다.

특성

예외

TypedArray가 이미 재활용되었으면 입니다.

설명

var>index</var>에서 <특성의 부울 값을 검색합니다.

특성이 정수 값이면 이 메서드는 특성이 0과 같으면 false를 반환하고, 그렇지 않으면 true를 반환합니다. 특성이 부울 또는 정수 값이 아닌 경우 이 메서드는 0과 같은지 여부를 사용하여 Integer#decode(String) 정수로 강제 변환하려고 시도합니다.

에 대한 android.content.res.TypedArray.getBoolean(int, boolean)Java 설명서

이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.

적용 대상