AlarmManager.AlarmClockInfo 中的 PendingIntent 在哪里使用?

Where Does the PendingIntent in AlarmManager.AlarmClockInfo Get Used?

The constructor to AlarmManager.AlarmClockInfo取一个PendingIntent,描述为"an intent that can be used to show or edit details of the alarm clock"。系统在哪里使用它?我在 Android 6.0 UI 中没有看到任何似乎会触发 PendingIntent.

的内容

PendingIntentgetShowIntent()AlarmManager.AlarmClockInfo 中返回:

public PendingIntent getShowIntent() {
    return mShowIntent;
}

StatusBarHeaderViewonClick()方法中使用:

PendingIntent showIntent = mNextAlarm.getShowIntent();
if (showIntent != null && showIntent.isActivity()) {
    mActivityStarter.startActivity(showIntent.getIntent(), true /* dismissShade */);
}

在视觉上,用户单击以调用 PendingIntent 的东西是闹钟的 date/time,如下面的闹钟图标右侧的灰色屏幕截图所示: