Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 705 Bytes

README.md

File metadata and controls

31 lines (23 loc) · 705 Bytes

java-pebble-timeline

This is a Java library for the Pebble Timeline API. Documentation for the full api can be found here.

Installation

Using maven:

<dependency>
	<groupId>nl.palolem</groupId>
	<artifactId>pebble-timeline</artifactId>
	<version>1.1</version>
</dependency>

Usage

Pin pin = new Pin.Builder().id("example-pin-generic-1")
				.time(new Date())
				.layout(new GenericPin.Builder()
						.title("News at 6 o'clock")
						.tinyIcon(Icon.NOTIFICATION_FLAG)
						.build())
				.build();
				
Timeline.sendPin("my-token", pin);

See tests for more examples.