@ Deprecated public void writeToParcel ( Parcel out , int flags ) { out . writeInt ( mIdentifiers . size ( ) ) ; for ( Identifier identifier : mIdentifiers ) { out . writeString ( identifier == null ? null : identifier . toString ( ) ) ; } out . writeDouble ( getDistance ( ) ) ; out . writeInt ( mRssi ) ; out . writeInt ( mTxPower ) ; out . writeString ( mBluetoothAddress ) ; out . writeInt ( mBeaconTypeCode ) ; out . writeInt ( mServiceUuid ) ; out . writeInt ( mDataFields . size ( ) ) ; for ( Long dataField : mDataFields ) { out . writeLong ( dataField ) ; } out . writeInt ( mExtraDataFields . size ( ) ) ; for ( Long dataField : mExtraDataFields ) { out . writeLong ( dataField ) ; } out . writeInt ( mManufacturer ) ; out . writeString ( mBluetoothName ) ; out . writeString ( mParserIdentifier ) ; out . writeByte ( ( byte ) ( mMultiFrameBeacon ? 1 : 0 ) ) ; out . writeValue ( mRunningAverageRssi ) ; out . writeInt ( mRssiMeasurementCount ) ; out . writeInt ( mPacketCount ) ; }
Required for making object Parcelable . If you override this class you must override this method if you add any additional fields .