Intent.UriAllowUnsafe 欄位
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
This constant will be removed in the future version. Use Android.Content.IntentUriType enum directly instead of this field.
標記用於與 #toUri#parseUri及 :允許解析不安全資訊。
[Android.Runtime.Register("URI_ALLOW_UNSAFE", ApiSince=22)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Content.IntentUriType enum directly instead of this field.", true)]
public const Android.Content.IntentUriType UriAllowUnsafe = 4;
[<Android.Runtime.Register("URI_ALLOW_UNSAFE", ApiSince=22)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Content.IntentUriType enum directly instead of this field.", true)>]
val mutable UriAllowUnsafe : Android.Content.IntentUriType
欄位值
Value = 4實作
- 屬性
備註
標記用於與 #toUri#parseUri及 :允許解析不安全資訊。 特別是,無法設定旗標 #FLAG_GRANT_READ_URI_PERMISSION、 #FLAG_GRANT_WRITE_URI_PERMISSION、 #FLAG_GRANT_PERSISTABLE_URI_PERMISSION和 #FLAG_GRANT_PREFIX_URI_PERMISSION 旗標,因此產生的意圖不會造成意外的資料存取。
如果你不信任解析 URI 的來源,仍應進一步處理以保護自己免受影響。 特別是在用它開始一項活動時,通常應該加入 #CATEGORY_BROWSABLE 限制能應付該活動的範圍。
Java 文件 android.content.Intent.URI_ALLOW_UNSAFE。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。