Intent.ToUri(IntentUriType) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將這個意圖轉換成一個包含其 URI 表示的字串。
[Android.Runtime.Register("toUri", "(I)Ljava/lang/String;", "GetToUri_IHandler")]
public virtual string? ToUri(Android.Content.IntentUriType flags);
[<Android.Runtime.Register("toUri", "(I)Ljava/lang/String;", "GetToUri_IHandler")>]
abstract member ToUri : Android.Content.IntentUriType -> string
override this.ToUri : Android.Content.IntentUriType -> string
參數
- flags
- IntentUriType
額外的操作旗幟。
傳回
回傳一個 URI 編碼的 URI 字串,描述整個意圖的內容。
- 屬性
備註
將這個意圖轉換成一個包含其 URI 表示的字串。 回傳的 URI 字串已正確編碼,因此可用於 Uri#parse Uri.parse(String)。 URI 包含 Intent 的資料作為基礎 URI,並有一個額外片段描述動作、類別、類型、旗標、套件、元件及額外內容。
你可以將回傳的字串轉換回意圖,且 。#getIntent
Java 文件 android.content.Intent.toUri(int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。