Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Update JNI to match current map and view methods #551

Closed

Description

@ljbade

Add any new methods or parameters from Map to:

  • JNI.cpp - C++ bridge
  • NativeMapView - Java class
  • update easy functions 5b6c7aa
  • change from Set to List for active classes 5b6c7aa
  • use setReachability - 0c2e3be

Activity

  1. added
    Android
    on Nov 7, 2014
  2. zochunhua commented on Nov 7, 2014

    @zochunhua

    where is the JNI.cpp and NativeMapView Java class

  3. ljbade commented on Nov 8, 2014

    @ljbade
    ContributorAuthor

    Most of the new functions added 5b6c7aa

  4. ljbade commented on Nov 8, 2014

    @ljbade
    ContributorAuthor

    For setReachability we need to use connectivity monitoring

  5. ljbade commented on Nov 13, 2014

    @ljbade
    ContributorAuthor

    OK did connectivity monitoring 0c2e3be

  6. ljbade commented on Nov 16, 2014

    @ljbade
    ContributorAuthor

    Just realised there are a bunch of other uncommented public functions in Map:

        inline const TransformState &getState() const { return state; }
        inline util::ptr<FileSource> getFileSource() const { return fileSource; }
        inline util::ptr<Style> getStyle() const { return style; }
        inline GlyphAtlas & getGlyphAtlas() { return glyphAtlas; }
        inline util::ptr<GlyphStore> getGlyphStore() { return glyphStore; }
        inline SpriteAtlas & getSpriteAtlas() { return spriteAtlas; }
        util::ptr<Sprite> getSprite();
        inline util::ptr<Texturepool> getTexturepool() { return texturepool; }
        uv::worker &getWorker();
        inline timestamp getAnimationTime() const { return animationTime; }
        inline timestamp getTime() const { return animationTime; }
        void updateTiles();
    
  7. ljbade commented on Nov 16, 2014

    @ljbade
    ContributorAuthor

    @kkaefer are those functions meant to be part of the API, or are they just internal stuff, i.e. do I need to expose them to Java? It will take a bit of effort to map all the classes they use into equivalent Java classes

    Also is const std::set<util::ptr<StyleSource>> getActiveSources() const; important? Seems strange to have a get with no set for that. Perhaps it should be moved down to all the other public: stuff?

  8. added this to the Android merge milestone on Nov 21, 2014
  9. kkaefer commented on Nov 24, 2014

    @kkaefer
    Member

    They are meant for internal use.

  10. ljbade commented on Nov 24, 2014

    @ljbade
    ContributorAuthor

    OK closing then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Android

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions