Estimote / Android-Fleet-Management-SDK

Estimote Fleet Management SDK for Android
https://developer.estimote.com
MIT License
836 stars 451 forks source link

Does Beacon class have a private Beacon(Parcel parcel) constructor? #61

Closed zhzhzoo closed 10 years ago

zhzhzoo commented 10 years ago

Now I'm subclassing Beacon to provide more information, I'm not using delegate since I need Beacon's methods and don't want to write a line for each of them. The problem is I want my subclass Parcelable, however, I was told Beacon(Parcel) was not visible when trying to call super(parcel). So does it exist? If so, could you make it public so that it would be easier to subclass it?

wiktor commented 10 years ago

Beacon class is Parcelable. Please don't use inheritance, use delegation instead. Beacon class might be final in next release.

On Sat, Jul 5, 2014 at 12:24 PM, zhzhzoo notifications@github.com wrote:

Now I'm subclassing Beacon to provide more information, I'm not using delegate since I need Beacon's methods and don't want to write a line for each of them. The problem is I want my subclass Parcelable, however, I was told Beacon(Parcel) was not visible when trying to call super(parcel). So does it exist? If so, could you make it public so that

it would be easier to subclass it?

Reply to this email directly or view it on GitHub: https://github.com/Estimote/Android-SDK/issues/61

zhzhzoo commented 10 years ago

Ah thank you very much wiktor ~~