语言

ContentCaptureCondition(LocusId, ContentCaptureConditionFlags) 构造函数

定义

默认构造函数。

[Android.Runtime.Register(".ctor", "(Landroid/content/LocusId;I)V", "", ApiSince=29)]
public ContentCaptureCondition(Android.Content.LocusId locusId, Android.Views.ContentCaptures.ContentCaptureConditionFlags flags);
[<Android.Runtime.Register(".ctor", "(Landroid/content/LocusId;I)V", "", ApiSince=29)>]
new Android.Views.ContentCaptures.ContentCaptureCondition : Android.Content.LocusId * Android.Views.ContentCaptures.ContentCaptureConditionFlags -> Android.Views.ContentCaptures.ContentCaptureCondition

参数

locusId
LocusId

条件的 ID,由 ContentCaptureContext#getLocusId().

flags
ContentCaptureConditionFlags

ContentCaptureCondition#FLAG_IS_REGEX (若要使用正则表达式匹配),或者0(在这种情况下,LocusId必须完全匹配LocusId在表达式ContentCaptureContext中使用的匹配项)。

特性

注解

默认构造函数。

Java文档android.view.contentcapture.ContentCaptureCondition.ContentCaptureCondition(android.content.LocusId, int)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于