Giter VIP home page Giter VIP logo

Comments (3)

stephanenicolas avatar stephanenicolas commented on May 25, 2024

@henson must be used only for activities without any @InjectExtra
annotation. In that case, the DSL will only let you start the activity
without providing any parameter.

If you have fields using @InjectExtra, then you should not use @henson and
the DSL will let you set the value of the required and optional fields.

S.

2015-09-04 9:23 GMT-04:00 Yuri Hernani Heupa [email protected]:

I can't find out how to use henson, the readme is quite shallow, i got a
activity annotated with Henson annotation, but the generated navigator
don't have any extras options, and if i use InjectExtra on any field of the
activity i got the following exception:
Error:(30, 8) error: @henson https://github.com/Henson class
MainActivty must not contain any @InjectExtra annotation

How can i correctly use henson with extras?


Reply to this email directly or view it on GitHub
#69.

from dart.

trungie avatar trungie commented on May 25, 2024

@stephanenicolas @f2prateek Does android studio automatically compile source code in the background? Because the only way i can get Henson to generate the $$IntentBuilder class is to explicitly run compile.

from dart.

seato avatar seato commented on May 25, 2024

@YuriHeupa Henson generates code (both to navigate to the activity and to add extras) by looking for @InjectExtra. If an activity doesn't have @InjectExtra then we need to help Henson by annotating the class with @Henson. Check out this issue for more info.

from dart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.