Язык

ExecuteAppFunctionResponse.ResultDocument Свойство

Определение

GenericDocument Возвращает значение, содержащее возвращаемое значение выполняемой функции.

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().

Части этой страницы — это изменения на основе работы, созданной и общей Project и используемых в соответствии с условиями, описанными в разделе "".

Применяется к