Language

NumberFormat.GetContext(DisplayContext+Type) Method

Definition

[icu] Get the formatter's DisplayContext value for the specified DisplayContext.Type, such as CAPITALIZATION.

[Android.Runtime.Register("getContext", "(Landroid/icu/text/DisplayContext$Type;)Landroid/icu/text/DisplayContext;", "GetGetContext_Landroid_icu_text_DisplayContext_Type_Handler", ApiSince=24)]
public virtual Android.Icu.Text.DisplayContext? GetContext(Android.Icu.Text.DisplayContext.Type? type);
[<Android.Runtime.Register("getContext", "(Landroid/icu/text/DisplayContext$Type;)Landroid/icu/text/DisplayContext;", "GetGetContext_Landroid_icu_text_DisplayContext_Type_Handler", ApiSince=24)>]
abstract member GetContext : Android.Icu.Text.DisplayContext.Type -> Android.Icu.Text.DisplayContext
override this.GetContext : Android.Icu.Text.DisplayContext.Type -> Android.Icu.Text.DisplayContext

Parameters

type
DisplayContext.Type

the DisplayContext.Type whose value to return

Returns

the current DisplayContext setting for the specified type

Attributes

Remarks

[icu] Get the formatter's DisplayContext value for the specified DisplayContext.Type, such as CAPITALIZATION.

Android reference for android.icu.text.NumberFormat.getContext.

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