From 5e4dd3e199567efc35aa14219a117020aa67a342 Mon Sep 17 00:00:00 2001 From: Bryce Lee Date: Mon, 3 Aug 2015 16:59:10 -0700 Subject: Add action for notifying custom components of missed calls. Change-Id: I09797e323dda7a5316f42c2a1c20fadbc60f2c6f --- telecomm/java/android/telecom/TelecomManager.java | 26 +++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'telecomm') diff --git a/telecomm/java/android/telecom/TelecomManager.java b/telecomm/java/android/telecom/TelecomManager.java index 067e734..232bf0f 100644 --- a/telecomm/java/android/telecom/TelecomManager.java +++ b/telecomm/java/android/telecom/TelecomManager.java @@ -367,6 +367,32 @@ public class TelecomManager { "android.telecom.intent.extra.TTY_PREFERRED"; /** + * Broadcast intent action for letting custom component know to show the missed call + * notification. + * @hide + */ + @SystemApi + public static final String ACTION_SHOW_MISSED_CALLS_NOTIFICATION = + "android.telecom.action.SHOW_MISSED_CALLS_NOTIFICATION"; + + /** + * The number of calls associated with the notification. + * @hide + */ + @SystemApi + public static final String EXTRA_NOTIFICATION_COUNT = + "android.telecom.extra.NOTIFICATION_COUNT"; + + /** + * The number associated with the missed calls. This number is only relevant + * when EXTRA_NOTIFICATION_COUNT is 1. + * @hide + */ + @SystemApi + public static final String EXTRA_NOTIFICATION_PHONE_NUMBER = + "android.telecom.extra.NOTIFICATION_PHONE_NUMBER"; + + /** * The following 4 constants define how properties such as phone numbers and names are * displayed to the user. */ -- cgit v1.1