Parcel.ReadBundle 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ReadBundle() |
從目前 dataPosition() 的包裹讀取並傳回新的 Bundle 物件。 |
ReadBundle(ClassLoader) |
使用指定的類別載入器,從目前 dataPosition(的地塊讀取並傳回新的 Bundle 物件,以初始化 Bundle 的類別載入器,以便稍後擷取 Parcelable 物件。 |
ReadBundle()
從目前 dataPosition() 的包裹讀取並傳回新的 Bundle 物件。
[Android.Runtime.Register("readBundle", "()Landroid/os/Bundle;", "")]
public Android.OS.Bundle? ReadBundle();
[<Android.Runtime.Register("readBundle", "()Landroid/os/Bundle;", "")>]
member this.ReadBundle : unit -> Android.OS.Bundle
傳回
- 屬性
備註
從目前 dataPosition() 的包裹讀取並傳回新的 Bundle 物件。 如果先前撰寫的 Bundle 物件為 null,則傳回 null。
的 android.os.Parcel.readBundle()
Java 檔。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。
適用於
ReadBundle(ClassLoader)
使用指定的類別載入器,從目前 dataPosition(的地塊讀取並傳回新的 Bundle 物件,以初始化 Bundle 的類別載入器,以便稍後擷取 Parcelable 物件。
[Android.Runtime.Register("readBundle", "(Ljava/lang/ClassLoader;)Landroid/os/Bundle;", "")]
public Android.OS.Bundle? ReadBundle(Java.Lang.ClassLoader? loader);
[<Android.Runtime.Register("readBundle", "(Ljava/lang/ClassLoader;)Landroid/os/Bundle;", "")>]
member this.ReadBundle : Java.Lang.ClassLoader -> Android.OS.Bundle
參數
- loader
- ClassLoader
傳回
- 屬性
備註
使用指定的類別載入器,從目前 dataPosition(的地塊讀取並傳回新的 Bundle 物件,以初始化 Bundle 的類別載入器,以便稍後擷取 Parcelable 物件。 如果先前撰寫的 Bundle 物件為 null,則傳回 null。
的 android.os.Parcel.readBundle(java.lang.ClassLoader)
Java 檔。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。