Git Product home page Git Product logo

aw-todoapp's Introduction

Todo App

A Todo Installable application for anywhereworks.

Downloads

SDK Usage

  • Inject SDK into Html/Jsp
  • Initiate SDK var app = AAFClient.init()
  • Default listeners
app.on('registered', function(data) {
 // Would return current AW app user (data.user);
});

app.on('activated',function(data){
  // data = {'user': {} , 'context': {} }
});

app.on('context-change',function(data){
 // data = {'user': {} , 'context': {} }
});

app.on('deactivated',function(data){
  // data = {} , App deactivation doesn't send any context.
});
  • Default events
// To show the count on app icon at chat header.
app.postMessage('showCount',{  
 'count': 10,
 'id'   : context-id // userId / streamId
}); 
 
 // To trigger desktop notification w.r.t user/stream
 app.postMessage('showNotification',{  
     'id'     : context-id
     'icon'   : null,          // App icon url to be shown in desktop notification.
     'title'  : title          // Title for the desktop notification. Ex :"Todo app remainder",
     'message': message        // body content for desktop notification. Ex : "Enabled desktop notification for todo app."
   });
   
 // To show the app update indicator on recent contact/stream view context.
 app.postMessage('showIndicator',{
     'id' : context-id // Context reference to show update indicator.
 });

Note :

Default events can be triggered only on successful app registration with AW app. (After registered event)

aw-todoapp's People

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.