Language

DateFormat.SetBooleanAttribute(DateFormat+BooleanAttribute, Boolean) Method

Definition

Sets a boolean attribute for this instance.

[Android.Runtime.Register("setBooleanAttribute", "(Landroid/icu/text/DateFormat$BooleanAttribute;Z)Landroid/icu/text/DateFormat;", "GetSetBooleanAttribute_Landroid_icu_text_DateFormat_BooleanAttribute_ZHandler", ApiSince=24)]
public virtual Android.Icu.Text.DateFormat? SetBooleanAttribute(Android.Icu.Text.DateFormat.BooleanAttribute? key, bool value);
[<Android.Runtime.Register("setBooleanAttribute", "(Landroid/icu/text/DateFormat$BooleanAttribute;Z)Landroid/icu/text/DateFormat;", "GetSetBooleanAttribute_Landroid_icu_text_DateFormat_BooleanAttribute_ZHandler", ApiSince=24)>]
abstract member SetBooleanAttribute : Android.Icu.Text.DateFormat.BooleanAttribute * bool -> Android.Icu.Text.DateFormat
override this.SetBooleanAttribute : Android.Icu.Text.DateFormat.BooleanAttribute * bool -> Android.Icu.Text.DateFormat

Parameters

key
DateFormat.BooleanAttribute

The date-parsing option to change.

value
Boolean

true to enable the option; false to disable it.

Returns

This date formatter after the parsing option has been updated.

Attributes

Remarks

Sets a boolean attribute for this instance. Aspects of DateFormat leniency are controlled by boolean attributes.

Android reference for android.icu.text.DateFormat.setBooleanAttribute.

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