1 package com.android.deskclock;
2 
3 import android.content.Context;
4 
5 import com.android.deskclock.provider.Alarm;
6 
7 /** DeskClockExtensions. */
8 public interface DeskClockExtensions {
9 
10     /**
11      * Notify paired device that a new alarm has been created on the phone, so that the alarm can be
12      * synced to the device.
13      *
14      * @param context  the application context.
15      * @param newAlarm the alarm to add.
16      */
addAlarm(Context context, Alarm newAlarm)17     public void addAlarm(Context context, Alarm newAlarm);
18 
19     /**
20      * Notify paired device that an alarm has been deleted from the phone so that it can also be
21      * deleted from the device.
22      *
23      * @param context the application context.
24      * @param alarmId the alarm id of the alarm to delete.
25      */
deleteAlarm(Context context, long alarmId)26     public void deleteAlarm(Context context, long alarmId);
27 
28 }
29