[mono-android] Eventing pattern
Michael Kestner
mkestner at novell.com
Wed Mar 9 15:33:40 EST 2011
On Mar 9, 2011, at 12:29 AM, Chris Erickson wrote:
> Hey MonoDroid guys,
> I was just using the TelephonyManager, and noticing that to subscribe to the status changed / listen event, I
> could not use .net style eventing
> Could not even implement the IPhoneStateListener interface
The java docs don't indicate that there is a PhoneStateListener interface. It's a subclassing API, probably because it doesn't require the user to override/provide everything.
As far as sprinkling it with some event-love, feel free to open an enhancement bug report. We have automated code that transforms some listener interface stuff into events automatically, but a fair amount of the battle is discovering the outliers like this and manually adding the event stuff.
Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/mailman/private/monodroid/attachments/20110309/5bd07136/attachment.html
More information about the Monodroid
mailing list