GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - shoma2da/EventDateRecorder: EventDateRecorder record event date and count persistently

BranchesTags
Open more actions menu

Latest commit

 

History

28 Commits
28 Commits

Folders and files

NameName
Last commit message
Last commit date
.idea
.idea
 
 
gradle/wrapper
gradle/wrapper
 
 
lib
lib
 
 
sampleapp
sampleapp
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
EventDateRecorder.iml
EventDateRecorder.iml
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle
settings.gradle
 
 

Repository files navigation

EventDateRecorder

EventDateRecorder record event date and count persistently.

If you want to get a sample app, please clone this repo : 'sampleapp' is a sample application.

iOS project is here.

Installation

Add below lines to your build.gradle.

repositories {
    maven { url 'https://raw.githubusercontent.com/shoma2da/EventDateRecorder/master/lib/repository/' }
}
dependencies {
    compile 'com.hatenablog.shoma2da:eventdaterecorderlib:0.1.0'
}

Usage

At first you need to import EventDateRecorder class.

import com.hatenablog.shoma2da.eventdaterecorderlib.EventDateRecorder;

You can record event.

EventDateRecorder recorder = EventDateRecorder.load(context, "my_event");
recorder.record();

You can access to recorded data.

EventDateRecorder recorder = EventDateRecorder.load(context, "my_event");

// return: boolean
recorder.didRecorded();

// return: int
recorder.recordedCount();

// return java.util.Date : initial event record date.
recorder.initialRecordedDate();

// return java.util.Date : previous event record date.
recorder.previousRecordedDate();

// return: boolean
recorder.didElapsedSinceInitialRecordedDate(60 * 60);

// return: boolean
recorder.didElapsedSincePreviousRecordedDate(60 * 60);

You can clear data.

EventDateRecorder recorder = EventDateRecorder.load(context, "my_event");
recorder.clear();

About

EventDateRecorder record event date and count persistently

Resources

Readme
Activity

Stars

6 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.