-
Notifications
You must be signed in to change notification settings - Fork 135
Joydeep Saha edited this page Feb 16, 2017
·
10 revisions
The DashClock API is pretty easy to get started with:
- Add DashClock to your
build.gradle
:compile 'com.google.android.apps.dashclock:dashclock-api:+'
- Create a new service that extends the DashClockExtension class.
- Add the corresponding
<service>
tag to yourAndroidManifest.xml
file and add the required<intent-filter>
and<meta-data>
elements.
Once you have both DashClock and your custom extension installed, you should be able to add your extension in the DashClock customization screen.
A complete example is available in the example-extension directory.
A deeper discussion of the API, along with code snippets, is available in the DashClockExtension class reference.
The full API reference is available here.
- New
worldReadable
meta data for your extension'sservice
component - New
iconUri()
property onExtensionData
- New
contentDescription()
property onExtensionData
- New
EXTRA_FROM_DASHCLOCK_SETTINGS
extra for determining when settings is reached from DashClock - New
DashClockExtension.removeAllWatchContentUris()
method that un-watches previously added content URIs.
Initial API release.