GithubHelp home page GithubHelp logo

nvdnkpr / tieventkit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tzmartin/tieventkit

0.0 0.0 0.0 106 KB

Ti.EventKit brings in iOS EventKit into the Titanium namespace. You can add events to iOS apps using the native calendar app.

License: Other

tieventkit's Introduction

tieventkit Module

Description

Ti.EventKit brings in iOS EventKit into the Titanium namespace. You can add events to iOS apps using the native calendar app. The compiled module zip file is available in the /dist folder.

Accessing the tieventkit Module

To access this module from JavaScript, you would do the following:

  Titanium.event = require('ti.eventkit');

The Titanium.event variable is a reference to the Module object. Alternatively you can instantiate the module into a separate variable:

var tieventkit = require('ti.eventkit');

Reference

Note: You'll need to pass the times based on the 24 hour clock, pre-adjusted to UTC to get the expected results.

ti.eventkit.function

newEvent(START_DATE, END_DATE, TITLE,LOCATION, NOTE);

ti.eventkit.property

None.

Usage

    Titanium.event = require('ti.eventkit');
    var results = Titanium.event.newEvent('2011-05-18 01:30:00 GMT','2011-05-18 05:00:00 GMT','Scotts BDay!','Our house','If this works, say W00t!');
    Titanium.API.log(results);

    // Returns
    [OBJ-C] arg1 is: 2011-05-18 01:30:00 GMT
    [OBJ-C] arg2 is: 2011-05-18 05:00:00 GMT
    [OBJ-C] arg3 is: Scotts BDay!
    [OBJ-C] arg4 is: Our house
    [OBJ-C] arg5 is: If this works, say W00t!

Author

Terry Martin http://twitter.com/tzmartin

Mark Pemburn http://developer.appcelerator.com/user/831551/mark-pemburn

License

This content is released under the MIT License. http://www.opensource.org/licenses/mit-license.php

tieventkit's People

Contributors

tzmartin 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.