android - It's not possible to produce and subscribe to events using Otto? -
android - It's not possible to produce and subscribe to events using Otto? -
i'm trying subscribe , post same fragment, i'm getting error when seek register fragment:
...(my method) has @produce annotation requires 1 arguments. methods must require 0 arguments. on
busprovider.getinstance().register(this); so guess it's not possible, maybe there alternative without additional interfaces.
thanks in advance!
methods annotated @produce must not take arguments. should homecoming event object.
"i'm trying subscribe , post" suggests need alter @subscribe annotation instead.
for posting events, utilize post(). @produce meant returning latest value of event.
android android-fragments otto
Comments
Post a Comment