1package com.android.deskclock; 2 3import android.content.Context; 4 5import com.android.deskclock.provider.Alarm; 6 7/** DeskClockExtensions. */ 8public 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 */ 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 */ 26 public void deleteAlarm(Context context, long alarmId); 27 28} 29