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

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -