Parcelable, what is newArray for?

后端 未结 3 1879
深忆病人
深忆病人 2021-02-14 11:02

I am implementing Parcelable in order to transmit some simple data throughout an Intent.
However, There is one method in the Parcelable interface that I don\'t understand at

3条回答
  •  眼角桃花
    2021-02-14 11:35

    newArray is responsible to create an array of our type of the appropriate size

提交回复
热议问题