Code example for Notification.Builder

Methods: setOngoing

0
	public void setSmallIcon(int icon) {
		mInstance.setSmallIcon(icon);
	} 
 
	public void setOngoing(boolean ongoing) {
		mInstance.setOngoing(ongoing);
	} 
 
	public void setContentIntent(PendingIntent intent) {
		mInstance.setContentIntent(intent);
	} 
 
	public void setProgress(int max, int progress, boolean indeterminate) {
		mInstance.setProgress(max, progress, indeterminate);
	} 
 
	@SuppressWarnings("deprecation") 
	public void notifyManager(NotificationManager nm, int id) {
		nm.notify(id, mInstance.getNotification());
	} 
}