ExecuteAppFunctionResponse.ResultDocument 屬性

定義

回傳一份包含已執行函式回傳值的通用文件。

public Android.App.AppSearch.GenericDocument ResultDocument { [Android.Runtime.Register("getResultDocument", "()Landroid/app/appsearch/GenericDocument;", "", ApiSince=36)] get; }
[<get: Android.Runtime.Register("getResultDocument", "()Landroid/app/appsearch/GenericDocument;", "", ApiSince=36)>]
member this.ResultDocument : Android.App.AppSearch.GenericDocument

屬性值

屬性

備註

回傳一份包含已執行函式回傳值的通用文件。

#PROPERTY_RETURN_VALUE該鍵可用來取得回傳值。

提取回傳值的範例程式碼:

GenericDocument resultDocument = response.getResultDocument();
                Object returnValue = resultDocument.getProperty(PROPERTY_RETURN_VALUE);
                if (returnValue != null) {
                  // Cast returnValue to expected type, or use {@link GenericDocument#getPropertyString},
                  // {@link GenericDocument#getPropertyLong} etc.
                  // Do something with the returnValue
                }

Java 文件 android.app.appfunctions.ExecuteAppFunctionResponse.getResultDocument()

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

適用於