WebChromeClient.FileChooserParams.ParseResult(Int32, Intent) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
解析檔案選擇器活動回傳的結果。
[Android.Runtime.Register("parseResult", "(ILandroid/content/Intent;)[Landroid/net/Uri;", "")]
public static Android.Net.Uri[]? ParseResult(int resultCode, Android.Content.Intent data);
[<Android.Runtime.Register("parseResult", "(ILandroid/content/Intent;)[Landroid/net/Uri;", "")>]
static member ParseResult : int * Android.Content.Intent -> Android.Net.Uri[]
參數
- resultCode
- Int32
檔案選擇器活動回傳的整數結果代碼。
- data
- Intent
檔案選擇器活動回傳的意圖。
傳回
選取檔案的 Uri,或 null 如果 resultCode 顯示活動已取消或其他錯誤,則會顯示 Uri。
- 屬性
備註
解析檔案選擇器活動回傳的結果。 此方法應用於 #createIntent。 請參考如何使用 #createIntent 它。
<b>注意:</b> 檔案選擇者活動回傳的意圖應視為不可信。 第三方應用程式處理隱 #createIntent 含意圖時,可能會回傳該第三方應用程式本身無法存取的 Uris,例如你自己應用程式的敏感資料檔案。 WebView 對返來的尿過孔不設任何限制。 應用程式有責任確保不受信任的來源(例如第三方應用程式)能存取它回傳的 Uri,且 Uris 不會指向任何敏感資料檔案。
Java 文件 android.webkit.WebChromeClient.FileChooserParams.parseResult(int, android.content.Intent)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。