语言

View.PerformReceiveContent(ContentInfo) 方法

定义

接收给定的内容。

[Android.Runtime.Register("performReceiveContent", "(Landroid/view/ContentInfo;)Landroid/view/ContentInfo;", "GetPerformReceiveContent_Landroid_view_ContentInfo_Handler", ApiSince=31)]
public virtual Android.Views.ContentInfo? PerformReceiveContent(Android.Views.ContentInfo payload);
[<Android.Runtime.Register("performReceiveContent", "(Landroid/view/ContentInfo;)Landroid/view/ContentInfo;", "GetPerformReceiveContent_Landroid_view_ContentInfo_Handler", ApiSince=31)>]
abstract member PerformReceiveContent : Android.Views.ContentInfo -> Android.Views.ContentInfo
override this.PerformReceiveContent : Android.Views.ContentInfo -> Android.Views.ContentInfo

参数

payload
ContentInfo

要插入的内容和相关元数据。

返回

未接受的传入内容部分(可能是所有内容、部分内容或未传入内容)。

特性

注解

接收给定的内容。 如果未设置侦听器,则 #onReceiveContent调用 。 如果侦听器为 #setOnReceiveContentListener set侦听器,则调用侦听器;如果侦听器返回非 null 结果,则 #onReceiveContent 调用以处理它。

Java文档android.view.View.performReceiveContent(android.view.ContentInfo)。

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

适用于