public class

NotificationExtra

extends Object
java.lang.Object
   ↳ com.htc.notification.NotificationExtra

Class Overview

NotificationExtra class for Notification objects. Allow easy and special control over status bar notifications. For a guide to creating notifications, see the Creating Status Bar Notifications document in the Dev Guide.

Summary

Public Constructors
NotificationExtra()
Public Methods
static void setButtonAction(Notification n, int buttonId, PendingIntent pi)
This method is deprecated. Use setOnClickPendingIntent(int, PendingIntent) instead and this allows you to set on-click action on specific item in your remote view; Used to instantiate a NotificationButtonAction object and allow to add button action on status bar. Note that the maximum number of notification buttons on status bar is limited (defined as NUM_BUTTONS = 3). However, it is more correct to use setOnClickPendingIntent() to set the on-click action for RemoteView.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public NotificationExtra ()

Since: API Level 2.0

Public Methods

public static void setButtonAction (Notification n, int buttonId, PendingIntent pi)

Since: API Level 2.0

This method is deprecated.
Use setOnClickPendingIntent(int, PendingIntent) instead and this allows you to set on-click action on specific item in your remote view; Used to instantiate a NotificationButtonAction object and allow to add button action on status bar. Note that the maximum number of notification buttons on status bar is limited (defined as NUM_BUTTONS = 3). However, it is more correct to use setOnClickPendingIntent() to set the on-click action for RemoteView.

Parameters
n The notification object
buttonId The button ID in the application's package of the layout to use.
pi The pending intent to launch for this buttonId.