語言

SetSchemaRequest.Builder.SetSchemaTypeDisplayedBySystem 方法

定義

設定所提供 schemaType 的文件是否會在任何系統介面表面上顯示與可見。

[Android.Runtime.Register("setSchemaTypeDisplayedBySystem", "(Ljava/lang/String;Z)Landroid/app/appsearch/SetSchemaRequest$Builder;", "", ApiSince=31)]
public Android.App.AppSearch.SetSchemaRequest.Builder SetSchemaTypeDisplayedBySystem(string schemaType, bool displayed);
[<Android.Runtime.Register("setSchemaTypeDisplayedBySystem", "(Ljava/lang/String;Z)Landroid/app/appsearch/SetSchemaRequest$Builder;", "", ApiSince=31)>]
member this.SetSchemaTypeDisplayedBySystem : string * bool -> Android.App.AppSearch.SetSchemaRequest.Builder

參數

schemaType
String

在同一個 SetSchemaRequest 中,會設定 AppSearchSchema 的名稱。 這個值不可能為零值。

displayed
Boolean

這類文件是否會顯示在系統介面表面。

傳回

屬性

備註

設定所提供 schemaType 的文件是否會在任何系統介面表面上顯示與可見。 此設定僅適用於所提供的 schemaType,且不會在 AppSearchSession.setSchema 呼叫間持續存在。 如果未呼叫此方法,預設行為是允許在系統介面表面顯示型別。

Android 參考資料。android.app.appsearch.SetSchemaRequest.Builder.setSchemaTypeDisplayedBySystem

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於