語言

View.OnReceiveContent(ContentInfo) 方法

定義

實作此類視圖接收內容的預設行為。

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

參數

payload
ContentInfo

內容插入及相關元資料。

傳回

未處理的已入內容部分(可能是全部、部分或全無)。

屬性

備註

實作此類視圖接收內容的預設行為。 預設視圖實作是 no-op(回傳傳入內容而不對其採取行動)。

小工具應該覆蓋此方法,以定義其接收內容的預設行為。 應用程式應 #setOnReceiveContentListener set a listener 提供針對特定應用程式的接收內容處理。

更多資訊請參見#setOnReceiveContentListener。#performReceiveContent

Java 文件 android.view.View.onReceiveContent(android.view.ContentInfo)。

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

適用於