Condividi tramite


IPropertyMapper.MapIntFlag(String, Int32, IIntFunction) Method

Definition

Map a string name to an integer ID for a flag set packed into an int property.

[Android.Runtime.Register("mapIntFlag", "(Ljava/lang/String;ILjava/util/function/IntFunction;)I", "GetMapIntFlag_Ljava_lang_String_ILjava_util_function_IntFunction_Handler:Android.Views.Inspectors.IPropertyMapperInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=29)]
public int MapIntFlag (string name, int attributeId, Java.Util.Functions.IIntFunction mapping);
[<Android.Runtime.Register("mapIntFlag", "(Ljava/lang/String;ILjava/util/function/IntFunction;)I", "GetMapIntFlag_Ljava_lang_String_ILjava_util_function_IntFunction_Handler:Android.Views.Inspectors.IPropertyMapperInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=29)>]
abstract member MapIntFlag : string * int * Java.Util.Functions.IIntFunction -> int

Parameters

name
String

The name of the property

attributeId
Int32

The attribute resource ID of this property, or Resources#ID_NULL

mapping
IIntFunction

A mapping from int to a set of strings

Returns

An integer ID for the property

Attributes

Remarks

Map a string name to an integer ID for a flag set packed into an int property.

Java documentation for android.view.inspector.PropertyMapper.mapIntFlag(java.lang.String, int, java.util.function.IntFunction<java.util.Set<java.lang.String>>).

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