Where is the PendingIntent function in AlarmManager.AlarmClockInfo?

The constructorAlarmManager.AlarmClockInfo accepts PendingIntent, described as "an intent that can be used to display or edit alarm details." Where is it used by the system? I don't see anything in the Android 6.0 interface, which seems to be launching this PendingIntent.

+4
source share
1 answer

PendingIntentreturns getShowIntent()to AlarmManager.AlarmClockInfo :

public PendingIntent getShowIntent() {
    return mShowIntent;
}

and used in the StatusBarHeaderViewonClick() method :

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

, , PendingIntent, - / , :

Android 6.0 Notification Shade, Showing Pending Alarm Clock

+4

Source: https://habr.com/ru/post/1611629/


All Articles