Giter VIP home page Giter VIP logo

contentstack-android-persistence's Introduction

Contentstack

Contentstack Android Persistence Library

Contentstack provides Android Persistence Library that lets your application store data on the device's local storage. This helps you build apps that can work offline too. Given below is a detailed guide and helpful resources to get started with our android Persistence Library.

Prerequisites

Setup and Initialize library

For Realm

You download below four files from Repository and keep it in your src folder.

  • RealmStore * SyncManager * SyncPersistable
  • SyncStore

Initialize the library

To start using the library in your application, you will need to initialize it by providing the stack details:

  Stack stack = Contentstack.stack(context, "apiKey", "accessToken", "environment");  
      
  //Provide realmInstance using   
  Realm realmInstance = Realm.getDefaultInstance();  
  //Provide realmInstance to RealmStore's constructor like below.  
  RealmStore realmStore = new RealmStore(realmInstance);  
      
  SyncManager manager = new SyncManager(realmStore, stack);  
  manager.stackRequest();  
   

We have created an example app using android Persistence Library that stores data on the device's local storage. Read the tutorial to get started with the example app.

Helpful Links

contentstack-android-persistence's People

Contributors

abhinav-from-contentstack avatar aravindbuilt avatar contentstack-admin avatar cs-raj avatar ishaileshmishra avatar nandeesh-gajula avatar reeshika-h avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

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.